Skip to content

enable DRVSTR for output pin #313

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 1 commit into from
Dec 14, 2021
Merged

enable DRVSTR for output pin #313

merged 1 commit into from
Dec 14, 2021

Conversation

hathach
Copy link
Member

@hathach hathach commented Dec 13, 2021

  • enable DRVSTR pinMode(output)
  • add neopixel and button pin define for circuitplay

superseded and close #312, fix #311

add neopixel and button pin define for circuitplay
@hathach hathach requested a review from ladyada December 13, 2021 09:55

case OUTPUT:
// enable input, to support reading back values, with pullups disabled
PORT->Group[port].PINCFG[pin].reg=(uint8_t)(PORT_PINCFG_INEN) ;
PORT->Group[port].PINCFG[pin].reg = (uint8_t) (PORT_PINCFG_INEN | PORT_PINCFG_DRVSTR);
Copy link
Member Author

Choose a reason for hiding this comment

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

PORT_PINCFG_DRVSTR for output pin, the rest is formatting.

Copy link

Choose a reason for hiding this comment

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

Looks good to me (which is to say it's exactly the patch I imagined, if I were brave enough to make this change across all SAMD platforms.)

@ladyada ladyada merged commit 1710c41 into master Dec 14, 2021
@ladyada ladyada deleted the set-output-drvstr branch December 14, 2021 03:58
@ladyada
Copy link
Member

ladyada commented Dec 14, 2021

@hathach thanks :) can do a release now - i also added the feather m4 adalogger so a release is due

@hathach
Copy link
Member Author

hathach commented Dec 14, 2021

@hathach thanks :) can do a release now - i also added the feather m4 adalogger so a release is due

will do the release asap

PS: @ladyada I didn't see new variant for feather m4 adalogger, or it shares with normal feather m4 ?

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.

Built-in neopixel on QT Py M0 (and probably feather M4 CAN) shows incorrect colors
3 participants