You are reading a single comment by @MaBe and its replies.
Click here to read the full conversation.
-
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".
Ok, if you ask your self where those pinMode() calls are coming from, than check this code section
https://github.com/espruino/Espruino/blob/62e0ec9e0e85b0373bcc5ffcc48bdd99cabea7cc/targets/esp32/jshardware.c#L131-L142
So dump() displays the code injected by
jshPinDefaultPullup()
plus your code.