Mixing sdcard and spi2.send fails #486
Replies: 3 comments
-
Posted at 2014-05-22 by @gfwilliams Well, the SD card itself is on SPI2 - so if you can use another SPI port (or software SPI) it's probably better. Having said that I'd have thought it would work. Does the act of reading the file (without the SPI.send) corrupt the LCD? If so you might have left CS asserted on the LCD? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-23 by JumJum Good point,
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-23 by @gfwilliams Try If a second argument is given to SPI.send, it's assumed to be a chip select pin. Note that you could use it to your advantage:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-22 by JumJum
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 ?
Beta Was this translation helpful? Give feedback.
All reactions