That's really neat!
Just had an idea (it's pretty nasty), but if you created your own reset() function and also created your own require and Modules.addCached (which was basically the same as your addFunction) then you could probably use the Web IDE to automatically load all the modules straight into the eeprom.
I'm going to have to implement some support for the DS2431 and similar EEPROMs. While they're not that big it'd be amazingly handy to be able to solder on a simple 2 or 3 wire device and get some nonvolatile storage. Because they don't draw much power you could just wire them between any available IO as well.
@Gordon, when creating this support, could you make it FRAM compatible? FRAMs do not need wait state(s) as EEPROMs do. See 256-Kbit (32 K × 8) Serial (SPI) F-RAM - Ferroelecric RAM as an alternative to EEPROM.
© Espruino, powered by microcosm.
Report a problem