CIRCUITOS
// C++ code // int t = 100; // declare a variable to use for delay void setup() { // setup code that only runs once // set pins 0-7 as outputs pinMode(0, OUTPUT); pinMode(1, OUTPUT); pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); } void loop() { // code that loops forever // note that each LED requires its own line of code // turn pin 0 on, others low digitalWrite(0, HIGH); digitalWrite(1, LOW); digitalWrite(2, LOW); digitalWrite(3, LOW); digitalWrite(4, LOW); digitalWrite(5, LOW); digitalWrite(6, LOW); digitalWrite(7, LOW); delay(t); // Wait for t millisecond(s) // turn pin 1 on, others low digitalWrite(0, LOW); digitalWrite(1, HIGH); digitalWrite(2, LOW); digitalWrite(3, LOW); digitalWrite(4, LOW); digitalWrite(5, LOW); digitalWrite(6, LOW); digitalWrite(7, LOW); delay(t); // Wait for t millisecond(s) // turn pin 2 on, others low digitalWrite(