const int LEDPIN0 = D0;
const int LEDPIN1 = D1;
void setup() {
pinMode(LEDPIN0, OUTPUT);
pinMode(LEDPIN1, OUTPUT);
}
void loop() {
//Ex.3
digitalWrite(LEDPIN0, HIGH);
digitalWrite(LEDPIN1, LOW);
delay(1000);
digitalWrite(LEDPIN0, LOW);
digitalWrite(LEDPIN1, HIGH);
delay(1000);
}
Click to Expand
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .