Skip to content

fourwire_construct no reset pin must be mp_const_none, not NULL#10995

Merged
tannewt merged 1 commit into
adafruit:10.2.xfrom
dhalbert:fourwire-no-reset-pin
May 11, 2026
Merged

fourwire_construct no reset pin must be mp_const_none, not NULL#10995
tannewt merged 1 commit into
adafruit:10.2.xfrom
dhalbert:fourwire-no-reset-pin

Conversation

@dhalbert
Copy link
Copy Markdown
Collaborator

@dhalbert dhalbert commented May 10, 2026

common_hal_fourwire_fourwire_construct() was changed in #10783 to take objects in general rather than only pin objects. If the display reset pin was not present, it expected mp_const_none, not the previous NULL or MP_OBJ_NULL (both are zero). This caused a crash on all boards that did not use a reset pin for the display.

Thanks @oenone for tracking down the exact commit, which made the diagnosis easy.

@dhalbert
Copy link
Copy Markdown
Collaborator Author

@oenone tested (#10993 (comment)) and this fix works for them.

@dhalbert
Copy link
Copy Markdown
Collaborator Author

This will be in 10.2.1, and I will do a release very soon, since this bug affects quite a few boards.

Copy link
Copy Markdown
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 0d8d219 into adafruit:10.2.x May 11, 2026
72 of 74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants