adafruit / Adafruit-SSD1351-library

Adafruit library for the 1.27" and 1.5" color OLEDs in the shop
http://www.adafruit.com/products/1431
Other
107 stars 49 forks source link

Hardware SPI not working with non-express M0 boards #32

Closed makermelissa closed 3 years ago

makermelissa commented 3 years ago

See https://forums.adafruit.com/viewtopic.php?f=57&t=165377&p=822579 for more info.

The user had determined that the Display works fine with the Hardware SPI on an Arduino Due. They also determined that on an Adalogger Feather M0, the Hardware SPI isn't working, but software SPI is working.

I was able to reproduce this behavior with an Adafruit Feather M0 WiFi, which is also a non-express board. I'll have to investigate further such as whether this affects other displays so I can make a better determination where the problem lies.

makermelissa commented 3 years ago

Tested with the same board using an ILI9341, which worked fine, so it looks like we can rule out GFX and SPI conflicts.

makermelissa commented 3 years ago

It appears to be going through the motions and in the serial output, there's a done message, so it's unlikely to be a memory issue, but not completely ruled out.

makermelissa commented 3 years ago

I slowed the default SPI frequency down to 12MHz (same as M4) and now it's working. I'll add a check for M0 procs and have it be the same.