标签:
int dianwei; int led = 13; void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(led,OUTPUT); } void loop() { // put your main code here, to run repeatedly: dianwei = analogRead(A0); Serial.println(dianwei); digitalWrite(led,HIGH); delay(dianwei); digitalWrite(led,LOW); delay(dianwei); }
原文地址:http://jt.satxt.com/arduino/arduino-y-d-w-q-d-j-led-s-s-p-s.html
标签:
原文地址:http://www.cnblogs.com/lnooge/p/4712687.html