Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

relic-se
Copy link
Contributor

@relic-se relic-se commented Sep 5, 2025

This update attempts to improve compatibility with unsupported hardware (ie: Metro RP2350) by checking for pin availability before initializing button and NeoPixel hardware. This should allow applications relying on the Peripherals class to have a greater chance of working without modifying code.

Considerations on unsupported hardware:

  • Button properties will continue to function but will always return False
  • Peripherals.neopixels will be None

Copy link
Contributor

@FoamyGuy FoamyGuy 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!

This looks good to me. I tested the product pick overlay code on Fruit Jam, it uses both buttons and neopixels. Confirmed it's working as intended.

One thing to note is that this will always initialize 5 neopixels if it finds board.NEOPIXEL. But on the Metro RP2350 there is only a single neopixel built-in. I don't believe it will cause it to crash or be unusable though.

@FoamyGuy FoamyGuy merged commit 58649ca into adafruit:main Sep 8, 2025
1 check passed
@relic-se relic-se deleted the optional-buttons branch September 8, 2025 19:48
adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 9, 2025
Updating https://github.com/adafruit/Adafruit_CircuitPython_CharLCD to 3.5.4 from 3.5.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_CharLCD#83 from squaregoldfish/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_VEML7700 to 2.1.5 from 2.1.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_VEML7700#37 from anecdata/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 7.3.0 from 7.2.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#186 from wizhannah/W6300

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_MIDI to 1.0.20 from 1.0.19:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_MIDI#15 from spridget/patch-2

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 3.1.1 from 3.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#105 from shubham0x13/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_FruitJam to 1.4.0 from 1.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_FruitJam#21 from relic-se/optional-buttons
  > Merge pull request adafruit/Adafruit_CircuitPython_FruitJam#20 from relic-se/dac-settings
  > Merge pull request adafruit/Adafruit_CircuitPython_FruitJam#15 from FoamyGuy/play_mp3_file
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