Good point,
I added cs off / cs on during reading from sdCard
With a constant color this works now, but ...
if color is red, it works fine
if color is green I get "Error: Invalid Pin!"
var c = 0x07e0; //Error: Invalid Pin!
var c = 0xf800; // works fine
for(var i = 0; i < img.height; i++){
ce.write(1);
bmp = E.toArrayBuffer(file.read(img.width + img.width));
ce.write(0);
for(var j = 0; j < 32; j++){spi.send(c>>8,c);}
}
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.
Good point,
I added cs off / cs on during reading from sdCard
With a constant color this works now, but ...
if color is green I get "Error: Invalid Pin!"