I need to set some variables. Those variables are positions of motors that I use in my project. I want to set those variables because I want to continue work if device restarts somehow.
I'm setting the devices position after each step. When stepping job done, I use save() function to save current position.
But this way causes some conflicts, I think it doesn't only change value and save it. It appends some code after my pure code, then saves it.
Are there a better way to set variables without using an external storage device?
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.
Hello,
I need to set some variables. Those variables are positions of motors that I use in my project. I want to set those variables because I want to continue work if device restarts somehow.
I'm setting the devices position after each step. When stepping job done, I use save() function to save current position.
But this way causes some conflicts, I think it doesn't only change value and save it. It appends some code after my pure code, then saves it.
Are there a better way to set variables without using an external storage device?