I started using this module for my project-works great. Initially I called the read function in a loop to read a page, then I found out that you can call the seek function once and consecutive reads will advance automatically. Much faster!
W25Q.prototype.readPage = function (page) {
var x = new Uint8Array(256);
this.seek(page, 0);
for (i = 0; i < 256; i++) {
x[i] = this.spi.send(0);
}
return x;
}
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.
I started using this module for my project-works great. Initially I called the read function in a loop to read a page, then I found out that you can call the seek function once and consecutive reads will advance automatically. Much faster!