// put your// The setup function runs once when you press reset or power the board
void setup() {
// Initialize digital pin D1 as an input.
pinMode(D1, INPUT);
// Initialize digital pin 26 as an output and set it high.
pinMode(26, OUTPUT);
digitalWrite(26, HIGH);
// Initialize digital pin D7 as an output and set it high.
pinMode(D7, OUTPUT);
digitalWrite(26, HIGH);
// Initialize digital pin D6 as an output and set it high.
pinMode(D6, OUTPUT);
digitalWrite(26, HIGH);
// Uncomment the following lines if you need to initialize more pins.
// pinMode(PIN_LED_R, OUTPUT);
// pinMode(PIN_LED_G, OUTPUT);
// pinMode(PIN_LED_B, OUTPUT);
// digitalWrite(PIN_LED_R, HIGH);
// digitalWrite(PIN_LED_G, HIGH);
// digitalWrite(PIN_LED_B, HIGH);
}
// The loop function runs over and over again forever
void loop() {
/*digitalWrite(PIN_LED_B, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(PIN_LED_B, LOW); // turn the LED off by making the voltage LOW
delay(1000);*/ // wait for a second
// Read the state of pin D1 and assign it to pin 26.
digitalWrite(26, digitalRead(D1));
// Turn on pins D6 and D7
digitalWrite(D6, HIGH);
digitalWrite(D7, HIGH);
delay(1000); // wait for a second
// Turn off pins 26, D6 and D7
digitalWrite(26, LOW);
digitalWrite(D6, LOW);
digitalWrite(D7, LOW);
delay(1000);
}