Skip to content

Add micropython materials folder - #1011

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/micropython-20261205
Dec 6, 2026
Merged

realpython-bot merged 2 commits 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

realpython-bot and others added 2 commits December 5, 2026 14:43
Code for the updated MicroPython tutorial: blink, PWM blink, and PWM fade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit 549698e into master Dec 6, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/micropython-20261205 branch December 6, 2026 07:08
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