Skip to content

Prevent wrong compiler optimization; unify pin-names - #11884

Open
bablokb wants to merge 2 commits into
adafruit:mainfrom
bablokb:inky_tweaks
Open

bablokb wants to merge 2 commits into
adafruit:mainfrom
bablokb:inky_tweaks

Conversation

@bablokb

@bablokb bablokb commented Nov 16, 2026

Copy link
Copy Markdown

This PR changes board.c for the Pimoroni Inky-Frame 5.7 and 7.3:

  • add volatile to the loop in pre_init(): this does not seem necessary for CP11, but when I backported the code to CP10/CP9 it turned out to be necessary. Probably CP10/CP9 use different compiler optimizations. Since nobody knows what future compilers do, I am adding this for CP11 too.
  • Unify pin-names for 7.3: this switches to 5.7 names (the names in the official schematic). Although this seems like a breaking change, it probably does not hurt anybody. The pin-names for the shift-register (and therefore also the SW_xxx constants) were defined but not useable before my last PR anyhow.

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.

1 participant