提交 db79c2ee 编写于 作者: M me-no-dev
上级 ab0ea2f6
......@@ -23,6 +23,15 @@
#include "esp_log.h"
#include <sys/time.h>
//Undocumented!!! Get chip temperature in Farenheit
//Source: https://github.com/pcbreflux/espressif/blob/master/esp32/arduino/sketchbook/ESP32_int_temp_sensor/ESP32_int_temp_sensor.ino
uint8_t temprature_sens_read();
float temperatureRead()
{
return (temprature_sens_read() - 32) / 1.8;
}
void yield()
{
vPortYield();
......
......@@ -61,6 +61,9 @@ void yield(void);
#include "esp32-hal-bt.h"
#include "esp_system.h"
//returns chip temperature in Celsius
float temperatureRead();
unsigned long micros();
unsigned long millis();
void delay(uint32_t);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册