Programming a C / C++ code to Control LEDS existing on BeagleBoneBlack using BUTTON integrated on the Board
13 views
Skip to first unread message
ghass...@gmail.com
unread,
Sep 17, 2019, 8:53:36 AM9/17/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BeagleBoard
Hello BBB users. Is there anyone here who developped a C or C++ code which make it possible to Control LED using Button integrated both in the board through GPIO ? Please help me.
TJF
unread,
Sep 17, 2019, 11:44:44 AM9/17/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BeagleBoard
This example shows how to control a user LED (LED3):
The only onboard button connected to a GPIO is the boot button, wired to P8_43. So you have to adapt #define PIN P8_43. And since the button switches GND, you should use a pull-up resistor: if (pruio_gpio_config(io, PIN, PRUIO_GPIO_IN_1)) {...