[ANN] Introducing BaremetalPi.jl - A package to access Raspberry Pi peripherals without external libraries

Based on the results of that discussion over on the other thread on GC, it seems that an interface for software PWM might be to spawn a very simple C thread that reads some julia globals and constantly bit-bangs the appropriate values to the pins, calling nanosleep and doing some timing adjustments based on the OS clock. It should be fine for up to tens of kilohertz I would think. The thread could take real-time scheduling. I think the jitter should be handled well, even on the RPi zero.

1 Like