EmbeddedNim / picostdlib

Nim wrapper for the raspberry pi stdlib
MIT License
70 stars 11 forks source link

Add bindings and examples for PIO API #41

Closed auxym closed 2 years ago

auxym commented 2 years ago

Closes #40

This PR adds bindings for roughly 50% of the PIO related API functions, which is more than enough to implement the two examples that are discussed in detail in the Pico SDK pdf docs: "hello" (blinky) and "ws2812".

Once again, feel free to comment on the exported API design, though it stays pretty close to the underlying C functions.

Unfortunately, no doc comments here. The API is close enough to the underlying C API that it would be mostly a copy/paste job. Maybe we could make a script that parses doxygen stuff and generates some nim doc comments from it?