I authored a version of spiFlashWriteByte that is a bit more efficient (at the expense of using a bit more rom due to loop unrolling. Appreciate feedback on this.
I'm also interested on how best to test this (I want to avoid bricking my bangle.js)
Something similar can be done for spiFlashReadWriteByte
(oh and the rationale for this, is that these two functions are very low level functions to access the spi flash so every clock cycle saved here pays off).
Edit: what flash chip is actually used in bangje.js?
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.
Hi,
I authored a version of spiFlashWriteByte that is a bit more efficient (at the expense of using a bit more rom due to loop unrolling. Appreciate feedback on this.
I'm also interested on how best to test this (I want to avoid bricking my bangle.js)
Code is at:
https://github.com/FransM/Espruino/tree/spiFlashWriteByte
Something similar can be done for spiFlashReadWriteByte
(oh and the rationale for this, is that these two functions are very low level functions to access the spi flash so every clock cycle saved here pays off).
Edit: what flash chip is actually used in bangje.js?