[m] Minor improvements
This commit is contained in:
@@ -153,8 +153,8 @@ void LightDisplay::drawDisplay() {
|
||||
|
||||
Paint_DrawFltUnit(76,0,sensor->light_lux, "lux", &Font24, BLACK, WHITE);
|
||||
Paint_DrawIntUnit(76,24*1,sensor->uvi, "uvi", &Font24, BLACK, WHITE);
|
||||
Paint_DrawFltUnit(76,24*2,sensor->light, "l", &Font24, BLACK, WHITE);
|
||||
Paint_DrawIntUnit(76,24*3,sensor->light_vis, "vl", &Font24, BLACK, WHITE);
|
||||
Paint_DrawIntUnit(76,24*2,sensor->light_full, "f", &Font24, BLACK, WHITE);
|
||||
Paint_DrawIntUnit(76,24*3,sensor->light_vis, "v", &Font24, BLACK, WHITE);
|
||||
|
||||
Paint_DrawString_EN(2,EPD_2IN13_V2_WIDTH - Font16.Height,"Nominal", &Font16, WHITE, BLACK);
|
||||
}
|
||||
|
@@ -87,12 +87,11 @@ public:
|
||||
dp.addTag("device", "WESP0");
|
||||
dp.addTag("location", "local");
|
||||
|
||||
dp.addField("temperature", sensor->temp);
|
||||
dp.addField("pressure", sensor->pres);
|
||||
dp.addField("humidity", sensor->temp);
|
||||
dp.addField("heat_index", sensor->heatidx);
|
||||
dp.addField("temperature", float(sensor->temp));
|
||||
dp.addField("pressure", int32_t(sensor->pres));
|
||||
dp.addField("humidity", int32_t(sensor->hum));
|
||||
dp.addField("temperature_feel", float(sensor->heatidx));
|
||||
|
||||
dp.addField("light", sensor->light);
|
||||
dp.addField("uv", sensor->uv);
|
||||
dp.addField("uvi", sensor->uvi);
|
||||
|
||||
|
@@ -77,7 +77,7 @@ bool TSL25911::ReadData(uint32_t* dataf) {
|
||||
uint8_t* data = static_cast<uint8_t*>(static_cast<void*>(dataf));
|
||||
bool success = WriteRegister(REG_ENABLE, ENABLE_POWERON | ENABLE_AEN);
|
||||
|
||||
delay((uint32_t)atime());
|
||||
delay((uint32_t)atime()+100);
|
||||
|
||||
success &= ReadRegister(CHAN0_LOW,&data[0],2);
|
||||
success &= ReadRegister(CHAN1_LOW,&data[2],2);
|
||||
|
@@ -24,7 +24,6 @@ public:
|
||||
float hum = 0;
|
||||
float heatidx = 0;
|
||||
|
||||
float light = 0;
|
||||
uint32_t uv = 0;
|
||||
uint32_t uvi = 0;
|
||||
|
||||
|
@@ -43,7 +43,6 @@ public:
|
||||
e.first();
|
||||
}
|
||||
}
|
||||
old_counter = counter;
|
||||
};
|
||||
|
||||
void updateForce() {
|
||||
|
Reference in New Issue
Block a user