Blinky for the cheapest microcontroller with flash memory: PY32F002

I made a basic blinky project in zig for the PY32F002, which is said to be the cheapest microcontroller that has flash memory, i.e. can be programmed multiple times.

I wanted to know how to build something like this from scratch (although I used microzigz’s regz tool to generate the code for the peripherals). I learned a lot, so there are probably some rough edges and fails regarding best practices.

The project is here: GitHub - lufemaho/py32-zig-blinky: Basic blinky project for the PY3F002 using zig.

I am happy to get some feedback on what can be improved!

3 Likes