I'm working on a function to draw bmp-files to ILI9341 display. Idea is to read bmp file from local drive and send to display.
for(var i = 0; i < img.height; i++){ bmp = E.toArrayBuffer(file.read(img.width + img.width)); spi.send(bmp.buffer); }
Data sent to SPI is somehow corrupted. Checked sending color red and its corrupted. Uncommented file.read and its working fine.
Is there a problem using sdCard and SPI2 at the same time ?
@JumJum started
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'm working on a function to draw bmp-files to ILI9341 display.
Idea is to read bmp file from local drive and send to display.
Data sent to SPI is somehow corrupted.
Checked sending color red and its corrupted.
Uncommented file.read and its working fine.
Is there a problem using sdCard and SPI2 at the same time ?