must set pull after setting direction with gpio_set_pin routines by dhalbert · Pull Request #1006 · adafruit/circuitpython · GitHub
Skip to content

must set pull after setting direction with gpio_set_pin routines#1006

Merged
kattni merged 1 commit into
adafruit:3.xfrom
dhalbert:3.x-fix-pull
Jul 9, 2018
Merged

must set pull after setting direction with gpio_set_pin routines#1006
kattni merged 1 commit into
adafruit:3.xfrom
dhalbert:3.x-fix-pull

Conversation

@dhalbert

@dhalbert dhalbert commented Jul 9, 2018

Copy link
Copy Markdown
Collaborator

gpio_set_pin_pull_mode() must come after gpio_set_pin_direction(). I reversed this in one case because I thought it might avoid a glitch on the pin, but it didn't work.

This is an example of why we need HW regression tests.

@dhalbert dhalbert requested review from kattni and tannewt July 9, 2018 21:29

@kattni kattni left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the fix! Tested successfully on ItsyBitsy M0 and M4 with test builds. Will merge once Travis is happy!

@kattni kattni merged commit 85a5276 into adafruit:3.x Jul 9, 2018
@dhalbert dhalbert deleted the 3.x-fix-pull branch May 28, 2019 13:26
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