Пример #1
0
void displayHumidityScreenLive(){
	displayBorder();
	int i;
	GLCDD_Rect r;
	
	r.w = 128 - 10;
	//r.h = -1;
	r.h = 5;
	
	// Humidity
	r.x = 20;
	r.y = 12;
	GLCDD_Printf(fnt_spaceLex_5, 0, &r, "HUMIDITY LIVE");
	
	for (i=0; i < 108; i++){
		Data data;
		data=bufferPop(buffer);
		drawPoint(data.humidity.current);
	}
}
Пример #2
0
void displayECScreenLive(int sensorID){
	displayBorder();
	int i;
	
	GLCDD_Rect r;
	
	r.w = 128 - 10;
	//r.h = -1;
	r.h = 5;
	
	// Humidity
	r.x = 20;
	r.y = 12;
	GLCDD_Printf(fnt_spaceLex_5, 0, &r, "EC-LEVEL %d LIVE", sensorID);
	
	for (i=0; i < 108; i++){
		Data data;
		data=bufferPop(buffer);
		drawPoint(data.ecLevel[sensorID].current);
	}
}
Пример #3
0
void displayTemperatureScreenLive(int sensorID){
	displayBorder();
	int i;
	
	GLCDD_Rect r;
	
	r.w = 128 - 10;
	//r.h = -1;
	r.h = 5;
	
	// Humidity
	r.x = 20;
	r.y = 12;
	GLCDD_Printf(fnt_spaceLex_5, 0, &r, "TEMPERATURE %d LIVE", sensorID);
	
	for (i=0; i < 108; i++){
		Data data;
		data=bufferPop(buffer);
		drawPoint(data.temperature[sensorID].current);
	}
}
Пример #4
0
 void memPop(const T *ptr)
 {
     return bufferPop((cl::Buffer *)ptr);
 }