arduino 呼吸灯
就是不知道一直闪会不会坏掉。针脚只能用有波浪线的
int led = 3; void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: for(int i = 10; i<255; i++) { analogWrite(led,i); delay(5); } for(int i = 255; i>10; i--) { analogWrite(led,i); delay(5); } }
发表回复