arduino中使用光敏电阻控制LED灯
int ledPin=12;int val=0;void setup() { // put your setup code here, to run once:Serial.begin(9600);pinMode(ledPin,OUTPUT);}void loop() { // put your main code here, to run repeatedly:int sensor
原创
2017-10-17 21:31:35 ·
21478 阅读 ·
1 评论