who want to use the module can already do so by simply copying the file to the modules folder
Actually just require("https://raw.githubusercontent.com/pastaclub/espruino-w25q/master/W25Q.js") should work too :)
Ahh - the page + erase thing makes life a bit more painful. If you could only erase a whole sector at once I was effectively treating that as the 'page size', but the requirement to call finish after each page causes problems.
The issue is the execution speed of Espruino - repeatedly calling write for each byte will be painfully slow - but being able to shovel buffers worth of data around tends to be a lot faster if it's possible...
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.
Actually just
require("https://raw.githubusercontent.com/pastaclub/espruino-w25q/master/W25Q.js")
should work too :)Ahh - the page + erase thing makes life a bit more painful. If you could only erase a whole sector at once I was effectively treating that as the 'page size', but the requirement to call
finish
after each page causes problems.The issue is the execution speed of Espruino - repeatedly calling
write
for each byte will be painfully slow - but being able to shovel buffers worth of data around tends to be a lot faster if it's possible...