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
112 stars 50 forks source link

When using Software SPI, the display looks blurry and messed up #27

Closed makermelissa closed 4 years ago

makermelissa commented 4 years ago

When using Software SPI, the display looks blurry and messed up. However, when using hardware SPI, everything looks fine. See https://forums.adafruit.com/viewtopic.php?f=19&t=161077&p=797340 for more details.

makermelissa commented 4 years ago

Version 1.1.1 works fine and starting with version 1.2.0, it stopped working.

makermelissa commented 4 years ago

The major change here is that it was refactored to use sendCommand, however, I'm sure I tested it in software SPI at the time, so it's possible something changed in GFX.

makermelissa commented 4 years ago

Ok, it looks like GFX 1.6.1 was the last working version and the issues started appearing in GFX 1.7.0 and got a little better after 1.7.2, but not quite fixed.

makermelissa commented 4 years ago

Turns out there was a duplicate spiWrite command in GFX sendCommand() that didn't seem to affect hardware SPI, but only software SPI. Removing it fixed the issue.