Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
691
Widok
0
13/06/2021 7:09 pm
Topic starter
example
1 Answer
0
13/06/2021 7:11 pm
Topic starter
- check BCM number of ports using "gpio readall"
- edit /etc/rc0.d/K01domoticz.sh
- add to bottom of file (my selected ports ar 22 27 and 17)
gpio export 22 in gpio edge 22 both gpio export 27 in gpio edge 27 both gpio export 17 in gpio edge 17 both sh -c "echo '1' >> /sys/class/gpio/gpio22/active_low" sh -c "echo '1' >> /sys/class/gpio/gpio27/active_low" sh -c "echo '1' >> /sys/class/gpio/gpio17/active_low" sh -c "echo '0' >> /sys/class/gpio/gpio22/active_low" sh -c "echo '0' >> /sys/class/gpio/gpio27/active_low" sh -c "echo '0' >> /sys/class/gpio/gpio17/active_low" sh -c "echo '1' >> /sys/class/gpio/gpio22/active_low" sh -c "echo '1' >> /sys/class/gpio/gpio27/active_low" sh -c "echo '1' >> /sys/class/gpio/gpio17/active_low" sleep 1