source

pico_ada_c02_button_and_led

1.5.1

Chapter 2 - Button controled LEDs

1.5.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.

Contained in Chapter 02 are:

  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 2 - Button & LED, GNATdoc documentation, SourceForge repository