You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SparkFun_MCP9600.h
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -106,9 +106,9 @@ class MCP9600{
106
106
boolresetToDefaults(); //Resets all device parameters to their default values. Returns 1 if there was an error, zero otherwise.
107
107
108
108
//Sensor measurements
109
-
floatthermocoupleTemp(); //Returns the thermocouple temperature in degrees Celcius
110
-
floatambientTemp(); //Returns the ambient (IC die) temperature in degrees Celcius
111
-
floattempDelta(); //Returns the difference in temperature between the thermocouple and ambient junctions, in degrees Celcius
109
+
floatthermocoupleTemp(bool units = true);//Returns the thermocouple temperature. Set units to true for Celcius, or false for freedom units (Fahrenheit)
110
+
floatambientTemp(bool units = true);//Returns the ambient (IC die) temperature. Set units to true for Celcius, or false for freedom units (Fahrenheit)
111
+
floattempDelta(bool units = true);//Returns the difference in temperature between the thermocouple and ambient junctions. Set units to true for Celcius, or false for freedom units (Fahrenheit)
112
112
signedlongrawADC(); //Returns the raw contents of the raw ADC register
113
113
boolinputRangeExceeded(); //Returns true if the MCP9600's EMF range has been exceeded, and false otherwise.
0 commit comments