Exemplo n.º 1
0
int main(void)
{

	int i = 0;
	int timer;
	
	//Init Robotarm 
	initRobotBase();
	//Init Display
	vInitDisplay();
	
	//Set Robotarm powerLED on green
	PowerLEDorange();
	
	while(1){
		
		//Write value 'i' to display
		ucShowPositiveDecimalValueInDisplay(i);
		
		//Wait 10 times 10 ms = 1 sec
		for(timer=0; timer<10; timer++){
			mSleep(100);
		}
		
		//increment value 'i' with 1
		i++;
	
	}
	
	
}
Exemplo n.º 2
0
void vGraphicTask(void* pvParameters)
{

	vInitDisplay();
	vShowBootText("booting ...");

	while (1)
	{
		//
		// Process any messages in the widget message queue.
		//
		WidgetMessageQueueProcess();
		vTaskDelay(1);
	}
}
Exemplo n.º 3
0
/**
 * Load the Menue Page form the Web
 */
void vLoadMenu(void)
{
	char* configLoad = loadFromConfig(IP_CONFIG_FILE, "DEFAULT_MENU_PAGE");

	vInitDisplay();

#if DEBUG_GRAPHIC
	printf("vLoadMenu: Display deleted\nLoad new Page\n");
#endif

	vLoadWebPage(configLoad, NULL);
	vPortFree(configLoad);
	xDisplayRoot.menue = false;
	vDrawElementsOnDisplay();
}