@sleepyfatcat said in DigitalWrite:
Hello,
I am trying to use C to on the LED on my M5 stick c plus.
I have initialise pin 10 as the output, and when I send digitalWrite(led_pin, 0), it ons the LED.
My code causes the LED to on when 0 is sent, and off when 1 is sent. Any idea why it seemed like it is flipped? Thank you
This apparently is normal behaviour for most ESP Cores from what I have found in data sheets and is very confusing.