Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit bfc6da08 authored by Mark Yoder's avatar Mark Yoder
Browse files

Added polling section

parent d9ca3885
Branches
Tags
2 merge requests!175PB2 documentation and UI changes,!154Draft: Diffs sitting on Mark Yoder's tree
......@@ -428,8 +428,8 @@ try modifying the earler *bash* script to use `gpiod` instead of `echo`.
The following may not work on all Beagles since it depends on which
version of Debian you are running.
Blinking in response to a button
---------------------------------
Blinking in response to a button event
--------------------------------------
Some Beagles have a **USR** button that can be used to control the LEDs.
You can test the **USR** button with ``evtest``
......@@ -504,6 +504,9 @@ Try modifying the code to turn on a different LED. Try blinking 2 or 3
LEDs when the button is pressed. Can you toggle an LED each time the
button is pressed?
Blinking in response to a button poll
-------------------------------------
The next script polls the USR button and toggles the LED rather that waiting
for an event.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment