Pico_ada_c02_button_and_led

Website:

https://pi-ada-tutorial.sourceforge.io/pico_ada_c02_button_and_led

Author:
  • Martin Krischik <krischik@users.sourceforge.net>
Maintainer:
  • Martin Krischik <krischik@users.sourceforge.net>
License:

GPL-3.0-or-later

Version:

1.5.1

Alire CI:

Dependencies: Dependents:

No dependents.

Badge:

Chapter 2 - Button controled LEDs

#raspberry #pi #pico #rp2040 #tasking #light-tasking #ada2022 #embedded

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