adafruit / Adafruit_Blinka_Displayio

Displayio for Blinka
MIT License
14 stars 20 forks source link

SSD1327 lacking grayscale support #105

Closed markbirss closed 1 year ago

markbirss commented 1 year ago

Connecting the same SSD1327 display using same library same example

Example: https://github.com/adafruit/Adafruit_CircuitPython_SSD1327/blob/main/examples/ssd1327_simpletest.py

Guide: https://learn.adafruit.com/adafruit-grayscale-1-5-128x128-oled-display/circuitpython-wiring-and-usage

CircuitPython on ESP32 image

BLINKA MCP2221A image

makermelissa commented 1 year ago

I think this is related to the Adafruit_Blinka_Displayio library rather than the driver since it works in CircuitPython. I'm almost certain it's related to https://github.com/adafruit/Adafruit_Blinka_Displayio/issues/72.

Could you provide some more details such as if you have it wired up with I2C or SPI? Thanks.

makermelissa commented 1 year ago

Also, since this display is known to have problems on Blinka, that's why we haven't made a Python Usage section to the guide yet.

markbirss commented 1 year ago

The pictured display was connected via I2C.

makermelissa commented 1 year ago

Thanks

markbirss commented 1 year ago

It is also not working correctly onnected to PICO BLINKA U2IF

makermelissa commented 1 year ago

Yeah, it's probably the same library issue.

makermelissa commented 1 year ago

I've been taking a closer look and the format of the I2C data actually looks closer than I expected. I believe the issue is actually the grayscale support of this display.

makermelissa commented 1 year ago

Still digging in, but at this point, I think one of the main issues is that each pixel color should only be a single byte and it's using 2 bytes for the color.