-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Documentation Updates (mcu.delay() and Design Guide) #481
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
/docs/design_guide: added links to firmware build learning guides for SAMD21 & ESP8266. Changes were placed in the "Adding native modules" section, since that seemed to me the best place based on target audience.
docs/design_guide: fixed rst formatting for added firmware build links.
docs/design_guide: ACTUALLY fixed rst formatting for added links to firmware build guides
docs/design_guide: finalized layout and formatting of Build Firmware Learning Guide links.
shared-bindings/microcontroller/__init__.c: updated documentation for `delay()` per issue adafruit#243.
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 bit of clarification on delay_us. Thanks for improving it!
//| `while` loop that runs for the specified `(delay)` time. If you have other | ||
//| code or peripherals that require specific timing or processing while you are waiting, | ||
//| explore a different avenue such as using `time.monotonic()` to evaluate time | ||
//| in a loop. |
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.
Audio recording is one example that will not run during delay_us. You can also point to time.sleep
as an alternative for longer delays because it will actually use something like time.monotonic
to do some things in the background while waiting.
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.
Alright. I wasn't sure if time.sleep
caused the same behavior or not.
`SAMD21 - Build Firmware Learning Guide <https://learn.adafruit.com/micropython-for-samd21/build-firmware>`_ | ||
|
||
`ESP8266 - Build Firmware Learning Guide <https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266/overview>`_ | ||
|
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.
This is a great place for these!
shared-bindings/microcontroller/__init.c__: updated `delay()` documentation based on reviewer's (@tannewt) suggested changes.
shared-bindings/microcontroller: fixed sphinx formatting
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.
Thanks for these updates! Congrats on your first contribution!
shared-bindings/microcontroller/init.c: updated documentation for
delay()
, per issue #243.docs/design_guide: added links to learning guides for building firmware (SAMD21 & ESP8266).