#!/bin/bash
gpio mode 1 out
gpio mode 4 out
gpio mode 5 out
gpio mode 6 out
gpio mode 9 out
gpio mode 8 out
gpio write 1 1
gpio write 4 1
gpio write 5 1
gpio write 6 1
gpio mode 10 in
gpio mode 7 in
gpio mode 0 in
gpio mode 2 in
gpio mode 3 in
gpio mode 12 in
gpio mode 13 in
gpio mode 14 in
gpio mode 10 in

 

 

Domoticz :

# Do NOT "set -e"
/usr/local/bin/gpio export 8 out #sda
/usr/local/bin/gpio export 9 out #scl
/usr/local/bin/gpio export 6 out
/usr/local/bin/gpio export 5 out
/usr/local/bin/gpio export 4 out
/usr/local/bin/gpio export 1 out
/usr/local/bin/gpio export 7 in
/usr/local/bin/gpio edge 7 both
/usr/local/bin/gpio export 0 in
/usr/local/bin/gpio edge 0 both
/usr/local/bin/gpio export 2 in
/usr/local/bin/gpio edge 2 both
/usr/local/bin/gpio export 3 in
/usr/local/bin/gpio edge 3 both
/usr/local/bin/gpio export 12 in
/usr/local/bin/gpio edge 12 both
/usr/local/bin/gpio export 13 in
/usr/local/bin/gpio edge 13 both
/usr/local/bin/gpio export 14 in
/usr/local/bin/gpio edge 14 both
/usr/local/bin/gpio export 10 in
/usr/local/bin/gpio edge 10 both

En poursuivant votre navigation sur mon site, vous acceptez l’utilisation des Cookies et autres traceurs  pour réaliser des statistiques de visites et enregistrer sur votre machine vos activités pédagogiques. En savoir plus.