Emergency Flasher
US Police response vehicle lights clone.
Very simple little project, started easy for first time using FRITZING. It was very easy to use. Anyways here is the scetch:
/* Project - Emergency Response Signals
Free Code by Tim Semborski
This is for learning purposes. Please be responsible with this code!/
//Create new variables and store the pin number byte redPin = 12; byte bluePin = 10;
//Setup function, declare pins as OUTPUTs void setup() { pinMode(redPin, OUTPUT); pinMode(bluePin, OUTPUT); }
//Loop function, makes the LEDs blink void loop() { digitalWrite(redPin, HIGH); delay(100); digitalWrite(redPin, LOW); digitalWrite(bluePin, HIGH); delay(100); digitalWrite(bluePin, LOW); }