Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add micropython materials folder - #1011

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/micropython-20261205
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/micropython-20261205

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds a micropython/ folder for the tutorial MicroPython: An Intro to Programming Hardware in Python, matching the full-update draft (https://realpython.com/pbjt/blog/post/2531/change/).

  • blink.py: blinks the onboard LED (Pin 2 on ESP boards, Pin("LED") on a Pico)
  • pwm_blink.py: hardware blink with duty_u16() and freq(1) (ESP only, since the Pico's minimum PWM frequency is about 8 Hz)
  • pwm_fade.py: fade loop with duty_u16()
  • requirements.txt: host tools pinned like the article (mpremote==1.29.0, esptool==5.7.0)

Card: https://trello.com/c/WdDoMLCF

Verification: ran every script on the MicroPython unix port with a stub machine module (ESP and rp2 frequency limits taken from the v1.29.0 port sources). The output matches the article. Installed requirements.txt and ran mpremote version and esptool version. ruff format --check, ruff check (0.14.1), and dircheck.py all pass. No real board was used.

🤖 Generated with Claude Code

Code for the updated MicroPython tutorial: blink, PWM blink, and PWM fade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant