@tve for the saving, I guess it's not such a big deal - but in jsiDumpState (iirc?) it can create an init string that is executed before onInit - it's also used when reconstructing using dump(). I guess we could add something to jshardware.h that appended custom initialisation strings on to that init string, so stuff like the clock speed could be saved in a nice simple way.
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.
@tve for the saving, I guess it's not such a big deal - but in jsiDumpState (iirc?) it can create an init string that is executed before
onInit
- it's also used when reconstructing usingdump()
. I guess we could add something tojshardware.h
that appended custom initialisation strings on to that init string, so stuff like the clock speed could be saved in a nice simple way.