本站改版新增arduino频道
arduino 获取板载温度模块温度
void setup() {
Serial.begin(115200);
}
void loop() {
// 读取芯片的温度
float temp = temperatureRead();
Serial.print("Temperature: ");
Serial.print(temp);
Serial.println(" C");
delay(1000); // 等待 1 秒
}
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0092098712921143 seconds