Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
hdw-temperature.c File Reference

Functions

void initTemperatureSensor (void)
 Initialize the ESP's onboard temperature sensor.
 
void deinitTemperatureSensor (void)
 deinitialize the ESP's onboard temperature sensor
 
float readTemperatureSensor (void)
 Get a temperature reading from the ESP's onboard temperature sensor, in Celsius.
 

Function Documentation

◆ initTemperatureSensor()

void initTemperatureSensor ( void )

Initialize the ESP's onboard temperature sensor.

◆ deinitTemperatureSensor()

void deinitTemperatureSensor ( void )

deinitialize the ESP's onboard temperature sensor

◆ readTemperatureSensor()

float readTemperatureSensor ( void )

Get a temperature reading from the ESP's onboard temperature sensor, in Celsius.

Returns
A floating point temperature, or -274 if not read