I am trying to implement some functions in jshardware.c
I want the save() functionality so I can save functions and variables and keep them when the device turns on. and then can use the onInit() functionality as well.
so I'm assuming to get this working I just need to implement the Flash functions in jshardware.c?
what exactly is jshSaveToFlash and jshLoadFromFlash supposed to do? I'm not really sure where or what the contents of JsVars is.
also how would you reccomend implementing jshFlashContainsCode()?
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.
I am trying to implement some functions in jshardware.c
I want the save() functionality so I can save functions and variables and keep them when the device turns on. and then can use the onInit() functionality as well.
so I'm assuming to get this working I just need to implement the Flash functions in jshardware.c?
what exactly is jshSaveToFlash and jshLoadFromFlash supposed to do? I'm not really sure where or what the contents of JsVars is.
also how would you reccomend implementing jshFlashContainsCode()?
-Thanks
Mike