User Tools

Site Tools


pi:gpio:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pi:gpio:bash [2020/08/02 11:07] (current)
els created
Line 1: Line 1:
 +====== Configure GPIO-Port for use ======
 +<​code>​echo "​4"​ > /​sys/​class/​gpio/​export</​code>​
 +====== Set directin for port ======
 +<​code>​echo "​out"​ > /​sys/​class/​gpio/​gpio4/​direction</​code>​
 +====== Write high or low ======
 +<​code>​
 +echo "​1"​ > /​sys/​class/​gpio/​gpio4/​value
  
 +echo "​0"​ > /​sys/​class/​gpio/​gpio4/​value
 +</​code>​
pi/gpio/bash.txt ยท Last modified: 2020/08/02 11:07 by els