-
Notifications
You must be signed in to change notification settings - Fork 1.3k
nrf: rework of pin files; add new boards; add pin claiming #1158
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good! Few minor issues.
…ca10056; improve board names for pca boards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few more questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great! Two minor comments and then ok by me.
Will Approve after this is updated to fix the conflict. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks!
@tannewt had to redo after merge due to pin struct changes; I forgot to try a recompile. Ready for another mini-review and travis is happy. Tested with a NeoPixel ring. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Fixes #1089 |
@dhalbert I see PCA10059 was added by this PR, but I don't see it among the files released for circuitpython 3.1.1. Should we compile it ourselves to get started for the PCA10059 board? Is there a "getting started" page for that? I don't see the board mentioned on https://github.com/adafruit/circuitpython/tree/master/ports/nrf |
@hansmbakker We've done a lot more work on 4.x. Either try those releases or test builds from here. |
atmel-samd
port, so that pin definitions can be commented and formatted.atmel-samd
, instead of storing port separately. Simplifies some code and allows them to be passed around more easily.atmel-samd
. Add calls toclaim_pin()
andpin_reset_number()
in peripheral classes.D0
,SCL
, etc.pin_reset()
topin_reset_number()
incommon-hal/microcontroller/Pins.c
to avoid confusion between routines that take pin objects and those that take pin numbers. Made this change inatmel-samd
also for consistency.neopixel_write
.printf()
call inmain.c
tomp_printf()
: was causing DEBUG builds to fail.atmel-samd
devices.More work to do in peripherals, including allow multiple instances in some cases, implementing not-yet-implemented. Those are covered in other issues.
@tannewt will merge, but @arturo182 take a look if you wish, because there are changes of interest in your device code.