Categories: BeagleY-AI, Beginner, Complete, Documentation
Originally published at https://docs.beagle.cc/boards/beagley/ai/demos/beagley-ai-using-gpio.html.
GPIO stands for General-Purpose Input/Output. It’s a set of programmable pins that you can use to connect and control various electronic components.
You can set each pin to either read signals (input) from things like buttons and sensors or send signals (output) to things like LEDs and motors. This lets you interact with and control the physical world using code!
A great resource for understanding pin numbering can be found at pinout.beagley.ai
…
import gpiod import time gpio14 = gpiod.find_line('GPIO14') gpio14.request(consumer='beagle', type=gpiod.LINE_REQ_DIR_OUT, default_val=0) while True: gpio14.set_value(1) time.sleep(1) gpio14.set_value(0) time.sleep(1) ...
See more at https://docs.beagle.cc/boards/beagley/ai/demos/beagley-ai-using-gpio.html
Using GPIO on BeagleY-AI
BeagleY-AI, Beginner, Complete, Documentation
Comments are not currently available for this post.