8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab0ea2f commit db79c2eCopy full SHA for db79c2e
cores/esp32/esp32-hal-misc.c
@@ -23,6 +23,15 @@
23
#include "esp_log.h"
24
#include <sys/time.h>
25
26
+//Undocumented!!! Get chip temperature in Farenheit
27
+//Source: https://github.com/pcbreflux/espressif/blob/master/esp32/arduino/sketchbook/ESP32_int_temp_sensor/ESP32_int_temp_sensor.ino
28
+uint8_t temprature_sens_read();
29
+
30
+float temperatureRead()
31
+{
32
+ return (temprature_sens_read() - 32) / 1.8;
33
+}
34
35
void yield()
36
{
37
vPortYield();
cores/esp32/esp32-hal.h
@@ -61,6 +61,9 @@ void yield(void);
61
#include "esp32-hal-bt.h"
62
#include "esp_system.h"
63
64
+//returns chip temperature in Celsius
65
+float temperatureRead();
66
67
unsigned long micros();
68
unsigned long millis();
69
void delay(uint32_t);
0 commit comments