From 5d5105c89a667d197ac5307faaf06b5badba0b35 Mon Sep 17 00:00:00 2001 From: Micah Elizabeth Scott <micah@misc.name> Date: Wed, 23 Dec 2015 10:16:43 -0800 Subject: [PATCH] Update OPC.pde from template for n in `find . -name OPC.pde`; do cp template/OPC.pde $n; done --- examples/processing/grid24x8z_clouds/OPC.pde | 4 ++-- examples/processing/grid8x8_dot/OPC.pde | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/processing/grid24x8z_clouds/OPC.pde b/examples/processing/grid24x8z_clouds/OPC.pde index 0f4b8f2..47d7b38 100644 --- a/examples/processing/grid24x8z_clouds/OPC.pde +++ b/examples/processing/grid24x8z_clouds/OPC.pde @@ -30,7 +30,7 @@ public class OPC implements Runnable thread = new Thread(this); thread.start(); this.enableShowLocations = true; - parent.parent.registerMethod("draw", this); + parent.registerMethod("draw", this); } // Set the location of a single LED @@ -361,7 +361,7 @@ public class OPC implements Runnable // Pause thread to avoid massive CPU load try { - thread.sleep(500); + Thread.sleep(500); } catch(InterruptedException e) { } diff --git a/examples/processing/grid8x8_dot/OPC.pde b/examples/processing/grid8x8_dot/OPC.pde index f83d187..47d7b38 100644 --- a/examples/processing/grid8x8_dot/OPC.pde +++ b/examples/processing/grid8x8_dot/OPC.pde @@ -367,4 +367,5 @@ public class OPC implements Runnable } } } -} \ No newline at end of file +} + -- GitLab