AceTimeClock  1.3.0
Clock classes for Arduino that can synchronize from an NTP server or an RTC chip
Public Member Functions | Public Attributes | List of all members
ace_time::hw::HardwareTemperature Class Reference

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.
 

Detailed Description

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.


The documentation for this class was generated from the following file: