Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLED 128x64 FeatherWing stopped working #4956

Closed
jepler opened this issue Jul 1, 2021 · 3 comments
Closed

OLED 128x64 FeatherWing stopped working #4956

jepler opened this issue Jul 1, 2021 · 3 comments
Labels
bug displayio rp2040 Raspberry Pi RP2040
Milestone

Comments

@jepler
Copy link
Member

jepler commented Jul 1, 2021

CircuitPython version

Adafruit CircuitPython 7.0.0-alpha.3-27-gc1c101ca2-dirty on 2021-07-01; Adafruit Feather RP2040 with rp2040

Code/REPL

import time
import board
import displayio
import adafruit_displayio_sh1107

displayio.release_displays()
# oled_reset = board.D9

# Use for I2C
i2c = board.I2C()
display_bus = displayio.I2CDisplay(i2c, device_address=0x3C)

# SH1107 is vertically oriented 64x128
WIDTH = 128
HEIGHT = 64
BORDER = 2

display = adafruit_displayio_sh1107.SH1107(display_bus, width=WIDTH, height=HEIGHT)

while True:
    print(time.time())
    time.sleep(1)

Behavior

The display is garbled or does not update

Description

I manually determined that this appears to be introduced by c1c101c (#4864), which changed addressing to support the sh1106g on the MacroPad.

Additional information

Note that when switching from a working revision to a non-working one, the display may seem to retain its prior content and trick you into thinking all is well.

@jepler jepler added the bug label Jul 1, 2021
@tannewt tannewt added displayio rp2040 Raspberry Pi RP2040 labels Jul 1, 2021
@tannewt tannewt added this to the 7.0.0 milestone Jul 1, 2021
@jepler
Copy link
Member Author

jepler commented Jul 8, 2021

@ladyada has indicated that this may be better solved by a change in the adafruit_displayio_sh1107 library.

ladyada added a commit to ladyada/Adafruit_CircuitPython_DisplayIO_SH1107 that referenced this issue Jul 9, 2021
@ladyada
Copy link
Member

ladyada commented Jul 9, 2021

fix submitted, plz try it :)

jepler added a commit to adafruit/Adafruit_CircuitPython_DisplayIO_SH1107 that referenced this issue Jul 9, 2021
@jepler
Copy link
Member Author

jepler commented Jul 9, 2021

Fixed in the library.

@jepler jepler closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug displayio rp2040 Raspberry Pi RP2040
Projects
None yet
Development

No branches or pull requests

3 participants