Skip to content

Commit

Permalink
Update somfy.py
Browse files Browse the repository at this point in the history
Changed indentation of line 124-128
  • Loading branch information
Nickduino authored Oct 27, 2018
1 parent 5ca4466 commit d60f7fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions somfy.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ def envoi_commande(telco, bouton, repetition): #Sending a frame

for i in range (0, 56): # manchester enconding of payload data
if ((frame[i/8] >> (7 - (i%8))) & 1):
wf.append(pigpio.pulse(0, 1<<TXGPIO, 640))
wf.append(pigpio.pulse(1<<TXGPIO, 0, 640))
wf.append(pigpio.pulse(0, 1<<TXGPIO, 640))
wf.append(pigpio.pulse(1<<TXGPIO, 0, 640))
else:
wf.append(pigpio.pulse(1<<TXGPIO, 0, 640))
wf.append(pigpio.pulse(0, 1<<TXGPIO, 640))
wf.append(pigpio.pulse(1<<TXGPIO, 0, 640))
wf.append(pigpio.pulse(0, 1<<TXGPIO, 640))

wf.append(pigpio.pulse(0, 1<<TXGPIO, 30415)) # interframe gap

Expand Down

0 comments on commit d60f7fd

Please sign in to comment.