inoProjects/AlternatingLights/AlternatingLights.ino
2019-03-12 10:20:53 +13:00

25 lines
421 B
C++

/*
*@author James McKenzie
*@lang C89 Based
*@contact lunarised@outlook.com
*/
void setup() {
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(10, LOW);
digitalWrite(11, HIGH);
digitalWrite(12, LOW);
digitalWrite(13, HIGH);
delay(100);
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
digitalWrite(12, HIGH);
digitalWrite(13, LOW);
delay(100);
}