Skip to content

fix qtpy_esp32s3_nopsram neopixel pins #6333

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

Merged
merged 2 commits into from
May 2, 2022
Merged

fix qtpy_esp32s3_nopsram neopixel pins #6333

merged 2 commits into from
May 2, 2022

Conversation

todbot
Copy link

@todbot todbot commented May 2, 2022

This PR adjusts the values for NEOPIXEL and NEOPIXEL_POWER in board.c and mpconfigboard.h to match those in tinyuf2's adafruit_qtpy_esp32s3/board.h

Currently this code does not light the built-in NeoPixel LED:

import board, digitalio
ledpower = digitalio.DigitalInOut(board.NEOPIXEL_POWER)
ledpower.switch_to_output(value=True)
leds = neopixel.NeoPixel(board.NEOXPIXEL, 1, brightness=0.1)
leds.fill(0xff00ff)

but this code does:

import microcontroller, digitalio
ledpower = digitalio.DigitalInOut(microcontroller.pin.GPIO38)
ledpower.switch_to_output(value=True)
leds = neopixel.NeoPixel(microcontroller.pin.GPIO39, 1, brightness=0.1)
leds.fill(0xff00ff)

Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

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

woops this is right - i changed it in rev C and didnt catch it

@ladyada ladyada merged commit bf0e1fa into adafruit:main May 2, 2022
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