Chapter 2 is out: Button + LED on the Pico in Ada!

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 :grinning_face_with_smiling_eyes:

  • 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 :wink:

Cheers, Martin

9 Likes