File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2323#include "esp_log.h"
2424#include <sys/time.h>
2525
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+
2635void yield ()
2736{
2837 vPortYield ();
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ void yield(void);
6161#include "esp32-hal-bt.h"
6262#include "esp_system.h"
6363
64+ //returns chip temperature in Celsius
65+ float temperatureRead ();
66+
6467unsigned long micros ();
6568unsigned long millis ();
6669void delay (uint32_t );
You can’t perform that action at this time.
0 commit comments