Thanks a lot for your answers guys, but nothing worked yet.
Since it's an ESP8266 ESP-01 it should be GPIO. In the reference it says, that GPIOx maps to Dx, so I think that using D0 and D2 is alright. I also tried it with new Pin(0) and (2) but that didn't work either (and is deprecated).
I also tried deactivating the debug output, but no change either. Plus I've read a few times, that it "should" be deactivated in newer builds by default.
I once again tried my C-Code, because I feared that I made a mistake soldering the 10k resistors, but it's still working. So somethings wrong with my code, even though it's only 3 lines of code.
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.
Thanks a lot for your answers guys, but nothing worked yet.
Since it's an ESP8266 ESP-01 it should be GPIO. In the reference it says, that GPIOx maps to Dx, so I think that using D0 and D2 is alright. I also tried it with new Pin(0) and (2) but that didn't work either (and is deprecated).
I also tried deactivating the debug output, but no change either. Plus I've read a few times, that it "should" be deactivated in newer builds by default.
I once again tried my C-Code, because I feared that I made a mistake soldering the 10k resistors, but it's still working. So somethings wrong with my code, even though it's only 3 lines of code.