You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
194 B
13 lines
194 B
#! /usr/bin/bash
|
|
#File: button.sh
|
|
|
|
pin_button=23 # Button an BCM23
|
|
gpiochip="gpiochip0"
|
|
|
|
pinctrl set ${pin_button} pu # Pin
|
|
while true; do
|
|
gpioget ${gpiochip} ${pin_button}
|
|
sleep 3
|
|
done
|
|
|
|
|
|
|