adafruit / adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306

Needs further fixing to be warning-free on 9.0 while working on 8.x.

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
72
Forks
23
PR merge metrics
No merged PRs in 30d

Description

On 9.0, the current version prints warnings at import:
```
Adafruit CircuitPython 9.0.0-rc.1-1-g7e7b2a4154-dirty on 2024-03-17; Adafruit Macropad RP2040 with rp2040
>>> import adafruit_displayio_ssd1306
FutureWarning: FourWire moved from displayio to fourwire
FutureWarning: I2CDisplay moved from displayio to i2cdisplaybus
FutureWarning: I2CDisplay renamed I2CDisplayBus
FutureWarning: Display moved from displayio to busdisplay
FutureWarning: Display renamed BusDisplay
```
this is related to how an attempt was made to fix this, but it's not quite right because of how the try/import/except blocks are organized.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported import of adafruit_displayio_ssd1306 on CircuitPython 9.0 and inspect the try/import/except organization responsible for the compatibility imports. Done means importing the driver produces no warnings on 9.0 while continuing to work on 8.x.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.