User Tools

Site Tools


pi:gpio:bash

Configure GPIO-Port for use

echo "4" > /sys/class/gpio/export

Set directin for port

echo "out" > /sys/class/gpio/gpio4/direction

Write high or low

echo "1" > /sys/class/gpio/gpio4/value

echo "0" > /sys/class/gpio/gpio4/value
pi/gpio/bash.txt · Last modified: 2020/08/02 11:07 by els