I am new to Arduino and have cut and pasted and modified the led program. i am curious aobut how timing ofthe program works.
with this program the leds blink alternately, What is the default time delay between camands?
And - how do i get two lights to blink at the thesame time – go on andoff at the same time.
anyone who couldhelp me find documents - or help with understanding the timing of the arduino program - i would appreciate it -
int redPin = 12; // Red LED connected to digital pin 12
int greenPin = 11; // Green LED connected to digital pin 11
int bluePin = 10;
int orangePin = 9;
void setup() // run once, when the sketch starts
pinMode(redPin, OUTPUT); // sets the digital pin as output
pinMode(greenPin, OUTPUT); // sets the digital pin as output
void loop() // run over and over again
digitalWrite(redPin, HIGH ); // sets the Red LED on