User Tools

Site Tools


en-us_commands:reference:irtcgettemperature

This is an old revision of the document!


IrtcGetTemperature()

IrtcGetTemperature() returns the internal RTC temperature.

IrtcGetTemperature command operation flow

bool IrtcGetTemperature(float& temperature)

Commands

Command Arguments Return Value Operation
IrtcGetTemperature(temperature) float& temperature bool Returns the internal RTC temperature.

Example

float temperature;
if (IrtcGetTemperature(temperature)) {
  Serial.println(temperature, 2);
}

Precautions

Run each device's corresponding Begin command first. Check I²C addresses and pin sharing; if the bool return value is false, inspect wiring and power.

← Built-in Command List

en-us_commands/reference/irtcgettemperature.1788785568.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki