Index / pico_ada_c02_button_and_led / 1.8.0
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:
sketch_02_1_button_and_led - Chapter 2.1 Switch LED with Button
sketch_02_2_table_lamp - Chapter 2.2 Simple table lamp
Read the full tutorial at Chapter 2 - Button &
LED , GNATdoc
documentation , SourceForge
repository
Authors Martin Krischik <krischik@users.sourceforge.net>
Maintainers Martin Krischik <krischik@users.sourceforge.net>
Licenses GPL-3.0-or-later
Tags raspberry, pi, pico, rp2040, tasking, light-tasking, ada2022, embedded
Executables sketch_02_1_button_and_led, sketch_02_2_table_lamp
Manifest index/pi/pico_ada_c02_button_and_led/pico_ada_c02_button_and_led-1.8.0.toml
Build and platform metadata 3 fields
Build switches {
"*": {
"ada_version": [
"-gnat2022"
]
},
"development": {
"compile_checks": "Warnings",
"contracts": "Yes",
"runtime_checks": "Overflow"
},
"release": {
"compile_checks": "Warnings",
"contracts": "No",
"runtime_checks": "Default"
},
"validation": {
"compile_checks": "Warnings",
"contracts": "Yes",
"runtime_checks": "Everything"
}
}Configuration {
"values": {
"light_tasking_rp2040": {
"Board": "rpi_pico",
"Max_CPUs": 2
},
"pico_xbsp": {
"Variant": "tasking"
},
"rp2040_hal": {
"Interrupts": "bb_runtimes",
"Use_Startup": false
}
}
}Additional origin data {
"hashes": [
"sha256:de88eb38b8f3f5c4b2881f7e7470327bb6c02308d2776945065a4e802779fdd1",
"sha512:694c69e664c8d8bd4ed4bff9fb0d89447354076a43e597092066e281100fad93caf80405701246e7e7df502d936008797d524c29bd43c3ccc6c28b9bde136f91"
]
}
No indexed release depends on this version.
Complete manifest as JSON