adafruit / TFTLCD-Library

Arduino library for 8-bit TFT LCDs such as ILI9325, ILI9328, etc
http://www.ladyada.net/products/tfttouchbreakout/ and http://www.ladyada.net/products/tfttouchshield
314 stars 259 forks source link

Really need soft SPI with Mega? #8

Closed ghost closed 9 years ago

ghost commented 11 years ago

Hi, I'm using the touchscreen breakout board with an Arduino Mega.

In file "tftbmp.pde" it says: // If using an Arduino Mega, make sure the SD library is configured for // 'soft' SPI in the file Sd2Card.h.

I didn't do anything to configure the SD library for 'soft' SPI and it still works. A bit of googling suggests that this comment might be outdated.

If true, please remove.

Thanks!

tdicola commented 9 years ago

Thanks for raising the issue and apologies it wasn't reviewed earlier. I looked into this a little more and it looks like SD card stuff is a bit messy, with different versions of the SD library available from the Arduino IDE and externally and many different shields that do or don't support SPI on the mega. To be safe it's good to still mention that soft SPI will work, but I just updated the comment to note that if you know you're using the mega's hardware SPI pins (like through the ICSP header) then you don't need to update the library. Thanks for raising the issue!

ghost commented 9 years ago

Great, thanks Tony!

On Tue, Jul 22, 2014 at 10:37 PM, Tony DiCola notifications@github.com wrote:

Thanks for raising the issue and apologies it wasn't reviewed earlier. I looked into this a little more and it looks like SD card stuff is a bit messy, with different versions of the SD library available from the Arduino IDE and externally and many different shields that do or don't support SPI on the mega. To be safe it's good to still mention that soft SPI will work, but I just updated the comment to note that if you know you're using the mega's hardware SPI pins (like through the ICSP header) then you don't need to update the library. Thanks for raising the issue!

— Reply to this email directly or view it on GitHub https://github.com/adafruit/TFTLCD-Library/issues/8#issuecomment-49834833 .