AceTimeClock
1.3.0
Clock classes for Arduino that can synchronize from an NTP server or an RTC chip
|
The temperature in Celcius as a signed (8.8) fixed-point integer. More...
#include <HardwareTemperature.h>
Public Member Functions | |
int16_t | toTemperature256 () const |
Return temperature in units of 1/256 degrees. | |
void | printTo (Print &printer) const |
Print HardwareTemperature to 'printer'. | |
Public Attributes | |
uint8_t | msb |
Upper byte of signed (8.8) fixed point temperature. | |
uint8_t | lsb |
Lower byte of signed (8.8) fixed point temperature. | |
The temperature in Celcius as a signed (8.8) fixed-point integer.
For negative temperatures, convert into a positive (8.8) integer, then print with a "-" in front of it. If you print just the (lsb / 256 * 100), it will be incorrect for negative temperatures.
Definition at line 22 of file HardwareTemperature.h.