Hi, Just tried to verify the state of a GPIO (D30):
>pinMode(D30,'output') =undefined >getPinMode(D30) ="output" >digitalRead(D30) =0 >digitalWrite(D30,1) =undefined >digitalRead(D30) =0 >getPinMode(D30) ="output" >digitalWrite(D30,0) =undefined >digitalRead(D30) =0 >digitalWrite(D30,1) =undefined >digitalRead(D30) =0 >
I probed the pin, it actually goes high and low according to digitalWrite. Anyone knows why the state cannot be read by Espruino?
digitalWrite
@Jean-Philippe_Rey started
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.
Hi,
Just tried to verify the state of a GPIO (D30):
I probed the pin, it actually goes high and low according to
digitalWrite
. Anyone knows why the state cannot be read by Espruino?