File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
MKR THERM Shield - Read Sensors
3
- This example reads the temperatures measured by the thermocouple
4
- connected to the MKR THERM shield
5
- and prints them to the Serial Monitor once a second.
3
+
4
+ This example reads the temperatures measured by the thermocouple
5
+ connected to the MKR THERM shield and prints them to the Serial Monitor
6
+ once a second.
7
+
6
8
The circuit:
7
9
- Arduino MKR board
8
10
- Arduino MKR THERM Shield attached
@@ -27,11 +29,11 @@ void setup() {
27
29
28
30
void loop () {
29
31
30
- Serial.print (" Shield reference temperature " );
31
- Serial.print (THERM.readRefTemperature ());
32
+ Serial.print (" Reference temperature " );
33
+ Serial.print (THERM.readReferenceTemperature ());
32
34
Serial.println (" °C" );
33
35
34
- Serial.print (" Measured temperature " );
36
+ Serial.print (" Thermocouple temperature " );
35
37
Serial.print (THERM.readTemperature ());
36
38
Serial.println (" °C" );
37
39
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ begin KEYWORD2
16
16
end KEYWORD2
17
17
18
18
readTemperature KEYWORD2
19
- readInternalTemperature KEYWORD2
19
+ readReferenceTemperature KEYWORD2
20
20
21
21
#######################################
22
22
# Constants
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ float THERMClass::readTemperature()
99
99
return celsius;
100
100
}
101
101
102
- float THERMClass::readInternalTemperature ()
102
+ float THERMClass::readReferenceTemperature ()
103
103
{
104
104
uint32_t rawword;
105
105
float ref;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class THERMClass {
31
31
void end ();
32
32
33
33
float readTemperature ();
34
- float readInternalTemperature ();
34
+ float readReferenceTemperature ();
35
35
36
36
private:
37
37
uint32_t readSensor ();
You can’t perform that action at this time.
0 commit comments