better looking flicker

master
Ondřej Hruška 6 years ago
parent 4b4f0791b9
commit c2ff889d0c
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 6
      demo_dot_matrix_phat2.py

@ -183,8 +183,8 @@ with gex.Client(gex.TrxRawUSB()) as client:
while True:
b1 += random.randint(-20, 15)
b2 += random.randint(-20, 15)
b3 += random.randint(-20, 15)
b2 += random.randint(-20, 18)
b3 += random.randint(-15, 13)
if b1 < 0: b1 = 0
if b2 < 0: b2 = 0
@ -197,4 +197,4 @@ with gex.Client(gex.TrxRawUSB()) as client:
n2.set_brightness(b2)
n3.set_brightness(b3)
time.sleep(0.001)
time.sleep(0.05)

Loading…
Cancel
Save