source

pico_ada_c02_button_and_led

1.3.1

Chapter 2 - Button & LED

1.3.1

Controlling an LED with a button on the Raspberry Pi Pico using Ada - two simple but useful interaction examples.

In this chapter I combine a push button with an LED. We start with basic on/off control, then move to a toggle-style table lamp with software debounce.

  1. Sketch_02_1_Button_And_Led - Chapter 2.1 Switch LED with Button
  2. Sketch_02_2_Table_Lamp - Chapter 2.2 Simple table lamp

Read the full tutorial at Chapter 1 Reloaded: Dual-Core Light Tasking - Blinking LEDs on Both Cores

GNATdoc documentation: https://pi-ada-tutorial.sourceforge.io/gnatdoc/pico_ada_c02_button_and_led/

SourceForge repository: https://sourceforge.net/projects/pi-ada-tutorial/