Portfolio. BHSAD Arduino Prototyping | L4, Harduino: Drawing light | Page 6

Traffic light. Part 1 void setup() { pinMode(PIN_GREEN1, OUTPUT); pinMode(PIN_YELLOW1, OUTPUT); pinMode(PIN_RED1, OUTPUT); digitalWrite(PIN_GREEN1, LOW); digitalWrite(PIN_YELLOW1, LOW); digitalWrite(PIN_RED1, LOW); } 25/06/2014—06/09/2014 The Modern Institute, 3 Aird’s Lane, Glasgow void loop() { digitalWrite(PIN_GREEN1, HIGH); delay(TIME_GREEN); blinkyellow=true; for(int i=0;i