https://pi-ada-tutorial.sourceforge.io/pico_ada_c03_led_bar
Author:GPL-3.0-or-later
Version:1.3.1
Alire CI: Dependencies:No dependents.
Badge:
Building a smooth flowing LED bar on the Raspberry Pi Pico with Ada - from a simple chasing light to a proper menacing Cylon scanner effect using real-time delays.
In this chapter we turn ten LEDs into a flowing light bar. We start with the basic Freenove example using an array of RP.GPIO.GPIO_Point (aliased limited tagged types). We then improve it with a pre-calculated sine-harmonic timing table to create a realistic Cylon scanner - all done with Ada.Real_Time and zero floating-point at runtime for perfect jitter-free movement.
The two programs included are:
Read the full tutorial (with photos, explanations and GNATdoc) at: https://pi-ada-tutorial.sourceforge.io/pico_ada_c03_led_bar/
GNATdoc documentation: https://pi-ada-tutorial.sourceforge.io/gnatdoc/pico_ada_c03_led_bar/
SourceForge repository: https://sourceforge.net/projects/pi-ada-tutorial/
(The Cylons did nothing wrong. Humans created the perfect companion species and then completely messed it up.)