https://pi-ada-tutorial.sourceforge.io/pico_ada_c04_pwm
Author:GPL-3.0-or-later
Version:1.6.0
Alire CI: Dependencies:No dependents.
Badge:
Building smooth breathing LEDs and flowing light bars with hardware PWM on the Raspberry Pi Pico using Ada. From jittery duty cycles to perfect linear dimming - guided by the Voltcraft MSO-5102B oscilloscope and a deep dive into PWM slice mapping on both Pico 1 and Pico 2.
In this chapter we create a reusable Pico.Analog package for PWM-based analogue output. We start with a classic breathing light, then move on to a flowing light bar. Along the way the MSO-5102B reveals the real behaviour of our code, and we discover (and fix) a subtle bug in the experimental RP2350 HAL.
Contained in Chapter 04 are:
Read the full tutorial at Chapter 4: Analog & PWM, GNATdoc documentation, SourceForge repository