- void setup()
- {
- pinMode(10, OUTPUT);
- pinMode(11, OUTPUT);
- pinMode(12, OUTPUT);
- pinMode(13, OUTPUT);
- }
- void loop()
- {
- digitalWrite(10, HIGH);
- delay(50);
- digitalWrite(10, LOW);
- delay(50);
- digitalWrite(11, HIGH);
- delay(50);
- digitalWrite(11, LOW);
- delay(50);
- digitalWrite(12, HIGH);
- delay(50);
- digitalWrite(12, LOW);
- delay(50);
- digitalWrite(13, HIGH);
- delay(50);
- digitalWrite(13, LOW);
- delay(50);
- }
複製代碼 |