I think there might have been some misunderstanding about my last post... You probably need to send all of the row 0s, followed by all row 1s, etc. So more like:
raw : function(val) {
digitalWrite(cs,0);
spi.send ([0x9,0]); // output raw data
digitalWrite(cs,1);
for (var row=0;row<val.length&7;row++) {
digitalWrite(cs,0);
for (var i=row;i<val.length;i+=8)
spi.send([row,val[i]]);
spi.send([0x0C,1]); // no shutdown
digitalWrite(cs,1);
}
},
I wonder if that'll be better?
By the way, when posting code, if you highlight it and click the 'code' button, it'll appear properly in the forum (i just changed yours).
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 think there might have been some misunderstanding about my last post... You probably need to send all of the row 0s, followed by all row 1s, etc. So more like:
I wonder if that'll be better?
By the way, when posting code, if you highlight it and click the 'code' button, it'll appear properly in the forum (i just changed yours).