public void init() throws InterruptedException {
for(LightBulbTest lifx : lifx_light_bulb.values()) {
- //Thread thread = new Thread(new Runnable() {
- // public void run() {
- lifx.init();
- // }
- //});
- //thread.start();
+
+ lifx.init();
Thread.sleep(1000);
for (int i = 0; i < 5; i++) {
lifx.setColor(lifx.getHue(), lifx.getSaturation(), i);
Thread.sleep(500);
}
- lifx.turnOff();
- //thread.join();
+ lifx.turnOff();
}
}
}