Skip to content

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

Merged
merged 7 commits into from
Dec 14, 2017

Conversation

sommersoft
Copy link

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).

/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.
Copy link
Member

@tannewt tannewt left a 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.
Copy link
Member

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.

Copy link
Author

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>`_

Copy link
Member

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
Copy link
Member

@tannewt tannewt left a 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!

@tannewt tannewt merged commit 36ec29d into adafruit:master Dec 14, 2017
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy