Hi @Wilberforce,
JshPinGetState() now returns pinState "or" JSHPINSTATE_PIN_IS_ON if pin is high.
jswrap_pin_toggle() can use JshPinState() to set bool on =
bool on =
Yes - I don't understand why the OR is used, if the hardware is getting read - then that would be sufficient I would have thought?
@Wilberforce 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 @Wilberforce,
JshPinGetState() now returns pinState "or" JSHPINSTATE_PIN_IS_ON if pin is high.
jswrap_pin_toggle() can use JshPinState() to set
bool on =