Linted
This commit is contained in:
parent
a8f4eec7be
commit
fe3a245660
1 changed files with 12 additions and 13 deletions
|
|
@ -7,16 +7,15 @@ while True:
|
|||
print("Slide switch off!")
|
||||
cpx.pixels.fill((0, 0, 0))
|
||||
continue
|
||||
else:
|
||||
R = 0
|
||||
G = 0
|
||||
B = 0
|
||||
x, y, z = cpx.acceleration
|
||||
print((x, y, z))
|
||||
if x:
|
||||
R = R + abs(int(x))
|
||||
if y:
|
||||
G = G + abs(int(y))
|
||||
if z:
|
||||
B = B + abs(int(z))
|
||||
cpx.pixels.fill((R, G, B))
|
||||
R = 0
|
||||
G = 0
|
||||
B = 0
|
||||
x, y, z = cpx.acceleration
|
||||
print((x, y, z))
|
||||
if x:
|
||||
R = R + abs(int(x))
|
||||
if y:
|
||||
G = G + abs(int(y))
|
||||
if z:
|
||||
B = B + abs(int(z))
|
||||
cpx.pixels.fill((R, G, B))
|
||||
|
|
|
|||
Loading…
Reference in a new issue