From 4d132ab857e34363f1cdeb523d2b73f3f4d89e86 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sat, 28 Sep 2019 16:33:34 -0400 Subject: [PATCH 1/2] Tweaks to get it to actually run --- interactions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interactions.py b/interactions.py index f9cab9c..4331426 100644 --- a/interactions.py +++ b/interactions.py @@ -76,9 +76,9 @@ fullsat = 254 def set_light_hsv(e, color, hit_bridge): command = { - 'hue' : color[0]*lasthue, - 'bri' : color[2]*fullbright, - 'sat' : color[1]*fullsat + 'hue' : int(color[0]*lasthue), + 'bri' : int(color[2]*fullbright), + 'sat' : int(color[1]*fullsat) } if hit_bridge and b != None: b.set_light(edges[e].light_id, command) @@ -87,7 +87,7 @@ def set_light_hsv(e, color, hit_bridge): # === interaction parameters === -frame_rate = 24 +frame_rate = 2 inductance = 0.001 From db4cff118650d58f45a52a04f66e2fdfbe23cf8e Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Sat, 28 Sep 2019 23:30:21 +0200 Subject: [PATCH 2/2] Fix vertex adjacency error --- interactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interactions.py b/interactions.py index f9cab9c..c13478e 100644 --- a/interactions.py +++ b/interactions.py @@ -18,7 +18,7 @@ vertex_adj = [ (0, 1), (0, 3), (0, 5), (0, 7), (0, 9), (2, 8), (2, 6), (6, 10), (10, 4), (4, 8), (2, 9), (2, 11), (2, 5), - (4, 1), (4, 9), (4, 7), + (4, 1), (4, 11), (4, 7), (6, 3), (6, 11), (6, 9), (8, 5), (8, 11), (8, 1), (10, 7), (10, 11), (10, 3),