jshPinGetValue definitely shouldn't change state (same for SetValue). There are some specific functions for that (jshSetPinOutput iirc?) but they're in jspin.c as there's nothing platform dependent in them.
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.
jshPinGetValue
definitely shouldn't change state (same for SetValue). There are some specific functions for that (jshSetPinOutput
iirc?) but they're injspin.c
as there's nothing platform dependent in them.