Ok, if you ask your self where those pinMode() calls are coming from, than check this code section
So dump() displays the code injected by jshPinDefaultPullup() plus your code.
Thanks for clarifying that 🙂. Still, do you know whats going on with the code being there twice? I just can't get my head around why the interpreter would hold the original code plus a copy (dump() docs states that the output is the "current state of" the interpreter) 🤔..
Its like "slightly modified code" + jshPinDefaultPullup() + "original code".
© Espruino, powered by microcosm.
Report a problem