Using GPIO on BeagleY-AI
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
The post Using GPIO on BeagleY-AI appeared first on BeagleBoard.