int ledPin_Red = 12;
int ledPin_Green = 11;
int ledPin_Yellow = 10;
void setup()
{
pinMode(ledPin_Red, OUTPUT);
pinMode(ledPin_Green, OUTPUT);
pinMode(ledPin_Yellow, OUTPUT);
}
void loop()
{
digitalWrite(ledPin_Red, HIGH);
delay(100);
digitalWrite(ledPin_Green, HIGH);
delay(100);
digitalWrite(ledPin_Yellow, HIGH);
delay(100);
digitalWrite(ledPin_Red, LOW);
delay(100);
digitalWrite(ledPin_Green, LOW);
delay(100);
digitalWrite(ledPin_Yellow, LOW);
delay(100);
}
沒有留言:
張貼留言