Microcounter (#142)
Jonathan Frech
Being a big fan of Python¹, I recently got a MicroPython Board.
MicroPython is a simple to use micro controller which runs Python 3. To put code onto it, you simple mount it as you would do with a USB flash drive, copy your main.py
to it and restart your MicroPython.
As a simple “Hello world.”-program, I wrote this counting script. Every time you press the built-in² button, it counts up by one. Using the four built-in LEDs and binary number representation, this counter can count from 0 to 15 and then wraps back.

Source code: microcounter.py
[1] | [2020-07-20] That sentiment has changed. |
[2] | [2020-07-20] Or rather “built-on”? |