Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Temperature sensor code code is based on Temperature Sensor Example.
You don't need to call initTemperatureSensor(). The system does at the appropriate time. If you're not using the sensor, you can call deinitTemperatureSensor() to disable it.
Call readTemperatureSensor() to get the chip's temperature in celsius.
Go to the source code of this file.
Functions | |
void | initTemperatureSensor (void) |
Initialize the ESP's onboard temperature sensor. | |
void | deinitTemperatureSensor (void) |
deinitialize the ESP's onboard temperature sensor | |
void | powerDownTemperatureSensor (void) |
Power down the temperature sensor. | |
void | powerUpTemperatureSensor (void) |
Power up the temperature sensor. | |
float | readTemperatureSensor (void) |
Get a temperature reading from the ESP's onboard temperature sensor, in Celsius. | |
void initTemperatureSensor | ( | void | ) |
Initialize the ESP's onboard temperature sensor.
void deinitTemperatureSensor | ( | void | ) |
deinitialize the ESP's onboard temperature sensor
void powerDownTemperatureSensor | ( | void | ) |
Power down the temperature sensor.
void powerUpTemperatureSensor | ( | void | ) |
Power up the temperature sensor.
float readTemperatureSensor | ( | void | ) |
Get a temperature reading from the ESP's onboard temperature sensor, in Celsius.