AronHetLam / ATEM_tally_light_with_ESP8266

Wireless tally light for use with ATEM switchers, which connects over WiFi, using an ESP WiFi module.
GNU General Public License v3.0
160 stars 40 forks source link

something confilct about define led2 #32

Closed fareign closed 3 years ago

fareign commented 3 years ago

LED2 define D4, will light up the board blue led.

goudi76 commented 3 years ago

The internal LED is on D4 Pin.

If the output of D4 is high, the onboard LED is lighting.

AronHetLam commented 3 years ago

Yes, as @goudi76 says, the built-in led is connected to D4. However, it will light when D4 is low, which is why it's off when led 2 is red, and on when it's not. You can see that

Serial.println(LED_BUILTIN);
Serial.println(D4);

both will print 2 in the console, referencing the same pin.