摘要: 参考:https://blog.csdn.net/TonyIOT/article/details/82085076 /* AutoLed 通过光敏电阻检测环境光,进而控制LED灯亮度 */ int ledPin = 4; //LEDs输出端口 >数字输出口4 int potPin = 0; //设置 阅读全文
posted @ 2020-05-30 20:04 caishunzhe 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 使用a4号 int potPin = 4; //设置模拟口4为LM35的信号输入端口 float temperature = 0; //设置temperature为浮点变量 long val=0; //设置val为长整数变量 float min_tem=100; float max_tem=0; v 阅读全文
posted @ 2020-05-30 11:22 caishunzhe 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 回顾 我们使用的平台: Arduino 入门实验1 眨眼睛 /* Blink Turns an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can 阅读全文
posted @ 2020-05-30 10:30 caishunzhe 阅读(395) 评论(0) 推荐(0) 编辑