From bfc6da086942e9c66d103ad0063178e5bc8597c7 Mon Sep 17 00:00:00 2001 From: "Mark A. Yoder" <Mark.A.Yoder@Rose-Hulman.edu> Date: Tue, 10 Oct 2023 17:52:30 -0400 Subject: [PATCH] Added polling section --- intro/blinkLED.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/intro/blinkLED.rst b/intro/blinkLED.rst index d504ff52..fa5ec2e3 100644 --- a/intro/blinkLED.rst +++ b/intro/blinkLED.rst @@ -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. -- GitLab