NodeMCU + RGB
Posted: Mon Jun 22, 2020 11:15 am
Code: Select all
const int RED = 5;
const int GREEN = 4;
const int BLUE = 0;
void setup() {
pinMode(RED, OUTPUT);
pinMode(GREEN, OUTPUT);
pinMode(BLUE, OUTPUT);
}
void loop() {
digitalWrite(RED, HIGH);
digitalWrite(GREEN, LOW);
digitalWrite(BLUE, LOW);
delay (1000);
digitalWrite(RED, LOW);
digitalWrite(GREEN, LOW);
digitalWrite(BLUE, LOW);
delay (1000);
}
Not work like expected...
LED RGB never off on LOW STATE.
What happen?