diff --git a/examples/processing/grid24x8z_clouds/OPC.pde b/examples/processing/grid24x8z_clouds/OPC.pde index 0f4b8f22ea45f8d97a9798a73e341a842f9b6537..47d7b38509249ed52ac463cd58822dc4e4820fc1 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 f83d187f66dd763f718776c8364e336e4ef83d89..47d7b38509249ed52ac463cd58822dc4e4820fc1 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 +} +