-
• #3
reset() wiper only the program in ram out, reboot() takes the saved program if any.
-
• #4
You could type reset(); save();
If you want a reboot command always available, just do:
E.setBootCode("function reboot() { reset(); save(); }");
That would do the trick for you. It would also be in memory after you reset or saved something.
BTW: I would not necessarily name that reboot. After all if you reboot a computer it does not wipe the harddisk :-).
-
• #6
Yep
If I do reset(); save(); I wipe out the program in EEPROM, that is not what I want.I have a program saved in EEPROM, that I want to get back running, when I am finished playing with other programs in ram.
-
• #7
Okay got, it. Sorry for misunderstanding. Yes, that would be useful!
-
• #9
Yes, tested, that works.
-
• #11
Hmm, so using a 10kΩ resistor is a better choice, than a paper clip :-)
-
• #13
What about
load()
? As I said that seems to do what you want.If you really care about a full hardware reboot you can always just
poke
the relevant ARM registers - but for most peoplereset()
andload()
should work fine - the only time you should need a hardware reboot is if something hideous has gone wrong, in which case the interpreter may not be responding anyway -
• #14
Thank you, load() was just what I needed.
Sorry I have overlooked it. -
• #15
No problem - it's not mentioned much in the docs :)
-
• #16
Load is cool! I also overlooked it...
Can I have a reboot(), like reset()?
Then it would not be necessary to take the battery out, to reset the Puck.
I have a saved program I want to start again, after I have made some test with other progam's in the ram.
Frida