arduino编程光敏电阻,对外界光线的反应
工具/原料
arduino
光敏电阻
LED
方法/步骤
1、设置LED灯的引脚
2、定义变量,存储传感器的值
3、设置输出端口模式
4、将传感器的值赋给变量
5、点亮效果
6、延迟效果
时间:2024-10-04 19:28:30
arduino编程光敏电阻,对外界光线的反应
工具/原料
arduino
光敏电阻
LED
方法/步骤
1、设置LED灯的引脚
2、定义变量,存储传感器的值
3、设置输出端口模式
4、将传感器的值赋给变量
5、点亮效果
6、延迟效果