package com.ociweb.grove;

import com.ociweb.gl.api.Behavior;
import com.ociweb.gl.api.StartupListener;
import com.ociweb.gl.api.TimeListener;
import com.ociweb.iot.grove.lcd_rgb.LCD_RGB_Transducer;
import com.ociweb.iot.maker.FogCommandChannel;

import static com.ociweb.iot.grove.lcd_rgb.LCD_RGB_Twig.*;

public class LCDRGB_Behavior implements Behavior, StartupListener {

	private LCD_RGB_Transducer lcd;

	
	public LCDRGB_Behavior(FogCommandChannel ch){
		lcd = LCD_RGB.newTransducer(ch);
		
	}
	
	@Override
	public void timeEvent(long time, int iteration) {
		
	}

}

@@ -238,16 +238,56 @@
 Channel;
+%0Aimport com.ociweb.iot.maker.FogRuntime;
 %0A%0Aimport
@@ -476,25 +476,18 @@
 (Fog
-CommandChannel ch
+Runtime rt
 )%7B%0A%09
@@ -519,20 +519,38 @@
 cer(
-ch);%0A%09
+rt.newCommandChannel());
 %09%0A%09%7D%0A
-%09
+%0A
 %0A%09@O
@@ -574,51 +574,112 @@
 oid 
-timeEvent(long time, int iteration) %7B
+startup() %7B%0A%09%09lcd.setCursor(0, 0);%0A%09%09lcd.commandForTextAndColor(%22Hello Wall!%22, 63, 63, 63);%0A%09%7D%0A%09%0A%0A%09
 %0A%09%09%0A%09
-%7D
 %0A%0A%7D%0A

hello world example done