From c2ff889d0cfe1128b5446e66845db468302cbbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 14 May 2018 21:38:18 +0200 Subject: [PATCH] better looking flicker --- demo_dot_matrix_phat2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo_dot_matrix_phat2.py b/demo_dot_matrix_phat2.py index d21e747..82b4727 100644 --- a/demo_dot_matrix_phat2.py +++ b/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)