Hi everyone!
Chapter 2 of my Raspberry Pi Pico + Ada tutorial series is now live: Button & LED β two working sketches that turn a simple LED into a responsive switch and a proper toggle-style table lamp (with software debounce).
Both examples worked first time β a nice change after some runtime experiments in Chapter 1 ![]()
- Direct port of the Freenove C example (on while pressed)
- Table lamp version (press once to toggle, with debounce)
Full write-up, Ada source, photos, GNATdoc links and Alire crate here: Chapter 2 β Button & LED Β· Pi Ada Tutorial
Repository: Pi Ada Tutorial - Browse /Alire at SourceForge.net
Alire crate (soon): pico_ada_c02_button_and_led
Feedback, questions and pull requests very welcome β especially if you spot ways to make the Ada code even more idiomatic!
Next chapter is already in the pipelineβ¦ and yes, Iβm planning to turn that LED bar into a proper red Cylon eye scanner ![]()
Cheers, Martin