I just try to control the brightness of an LED, similar to this: https://www.arduino.cc/en/Tutorial/Fading, just basic stuff. I did not set the pinMode, because analogWrite will set it to 'output'.
Oh... with LED dims I mean it turns black. And, even more surprising, after that it does not light up anymore with digitalWrite(D26, true)...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I just try to control the brightness of an LED, similar to this: https://www.arduino.cc/en/Tutorial/Fading, just basic stuff. I did not set the
pinMode
, becauseanalogWrite
will set it to 'output'.Oh... with LED dims I mean it turns black. And, even more surprising, after that it does not light up anymore with
digitalWrite(D26, true)
...