本站改版新增arduino频道
arduino TEMT6000 光照度
int TEMT6000Pin = 5; //定义引脚
void setup()
{
Serial.begin(9600); //设置波特率
}
void loop()
{
int value = analogRead(TEMT6000Pin); //读取A0口模拟值
Serial.println(value); //打印A0口模拟值
delay(100);
}
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.011133909225464 seconds