Skip to content
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

correct board special pin setup #9553

Merged

Conversation

dhalbert
Copy link
Collaborator

espressif_board_reset_pin_number() was being used on many boards to set certain pins high or low on startup. However, it was using basic gpio functions without ensuring that the IOMUX for pin was set to GPIO. This meant the GPIO settings were not necessarily taking effect. This may have caused issues on other boards we didn't know about besides the Feather C6 from #9551.

I added a helper routine to ensure that gpio_config() was called before setting the pin level. gpio_config() does the IOMUX configuring.

A helper routine to set pulls could also be added, but some boards use a disabled pin with a pull, and some use an input pin. So I didn't do this now.

Tested on Feather ESP32-C6, which now turns on board.NEOPIXEL_I2C_POWER as it should.

This PR also includes #9549, to avoid failure in the Windows build job.

@dhalbert dhalbert force-pushed the 9.1.x-correct-board-special-pin-setup branch 2 times, most recently from 485f75d to 4e97bdd Compare August 23, 2024 03:16
@dhalbert dhalbert force-pushed the 9.1.x-correct-board-special-pin-setup branch from 4e97bdd to 6759007 Compare August 23, 2024 03:36
@BlitzCityDIY
Copy link

fantastic, thank you Dan! i tested with the C6 and the pin is high without having to manually set it. also tested with an s3 TFT feather and s3 feather no psram and both of those were still functioning properly

Copy link

@BlitzCityDIY BlitzCityDIY left a comment

Choose a reason for hiding this comment

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

tested with C6, s3 tft and s3 no psram feathers

@dhalbert dhalbert merged commit 31e9b15 into adafruit:9.1.x Aug 23, 2024
206 checks passed
@dhalbert dhalbert deleted the 9.1.x-correct-board-special-pin-setup branch August 23, 2024 16:15
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