pylint gauntlet, round 2 - PEP8's revenge
This commit is contained in:
parent
d18096961d
commit
0e9c2d068d
3 changed files with 11 additions and 7 deletions
|
|
@ -16,9 +16,9 @@ pwm = pulseio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
|
|||
pulseout = pulseio.PulseOut(pwm)
|
||||
|
||||
# Create an encoder that will take numbers and turn them into IR pulses
|
||||
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500],
|
||||
one=[550, 550],
|
||||
zero=[550, 1700],
|
||||
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500],
|
||||
one=[550, 550],
|
||||
zero=[550, 1700],
|
||||
trail=0)
|
||||
|
||||
while True:
|
||||
|
|
|
|||
|
|
@ -16,8 +16,10 @@ pwm = pulseio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
|
|||
pulseout = pulseio.PulseOut(pwm)
|
||||
|
||||
# Create an encoder that will take numbers and turn them into IR pulses
|
||||
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550], zero=[550, 1700], trail=0)
|
||||
|
||||
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500],
|
||||
one=[550, 550],
|
||||
zero=[550, 1700],
|
||||
trail=0)
|
||||
while True:
|
||||
pixels.fill(0xFF0000)
|
||||
encoder.transmit(pulseout, [TREASURE_ID]*4)
|
||||
|
|
|
|||
|
|
@ -16,8 +16,10 @@ pwm = pulseio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
|
|||
pulseout = pulseio.PulseOut(pwm)
|
||||
|
||||
# Create an encoder that will take numbers and turn them into IR pulses
|
||||
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550], zero=[550, 1700], trail=0)
|
||||
|
||||
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500],
|
||||
one=[550, 550],
|
||||
zero=[550, 1700],
|
||||
trail=0)
|
||||
while True:
|
||||
pixels.fill(0xFF0000)
|
||||
encoder.transmit(pulseout, [TREASURE_ID]*4)
|
||||
|
|
|
|||
Loading…
Reference in a new issue