Forum

domoticz - gpio, ex...
 
Notifications
Clear all

domoticz - gpio, example with low signal activtion startup

1 Posty
1 Users
0 Reactions
721 Widok
0
Topic starter

example

1 Answer
0
Topic starter
  1. check BCM number of ports using "gpio readall"
  2. edit /etc/rc0.d/K01domoticz.sh
  3. 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
    

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: