// 変数を使う int t=50; //tの長さを変えると点滅速度を変えられる void setup() { } void loop() { analogWrite(11,0); analogWrite(10,255); delay(t); analogWrite(11, 50); analogWrite(10,200); delay(t); analogWrite(11, 100); analogWrite(10,150); delay(t); analogWrite(11, 150); analogWrite(10,100); delay(t); analogWrite(11, 200); analogWrite(10,50); delay(t); analogWrite(11, 255); analogWrite(10,0); delay(t); }