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); } }
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); } }
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); } }
void memPop(const T *ptr) { return bufferPop((cl::Buffer *)ptr); }