Improve on-display format
This commit is contained in:
parent
f38e6fe6ae
commit
c6dec059a2
|
@ -94,12 +94,12 @@ void wifi_setup(void)
|
|||
|
||||
void initSCD30(void)
|
||||
{
|
||||
timeseries_init(&ts_scd30_co2, timeClient.getEpochTime(), 15, "ppm", "%.1f");
|
||||
timeseries_init(&ts_scd30_co2, timeClient.getEpochTime(), 15, "ppm", "%.0f");
|
||||
timeseries_init(&ts_scd30_temperature, timeClient.getEpochTime(), 15, "°C", "%.1f");
|
||||
timeseries_init(&ts_scd30_humidity, timeClient.getEpochTime(), 15, "%", "%.1f");
|
||||
timeseries_init(&ts_bme680_temperature, timeClient.getEpochTime(), 15, "°C", "%.1f");
|
||||
timeseries_init(&ts_bme680_humidity, timeClient.getEpochTime(), 15, "%", "%.1f");
|
||||
timeseries_init(&ts_bme680_pressure, timeClient.getEpochTime(), 15, "hPa", "%.1f");
|
||||
timeseries_init(&ts_bme680_pressure, timeClient.getEpochTime(), 15, "hPa", "%.2f");
|
||||
timeseries_init(&ts_bme680_gas_resistance, timeClient.getEpochTime(), 15, "kOhm", "%.1f");
|
||||
|
||||
// Try to initialize!
|
||||
|
@ -347,7 +347,7 @@ static void draw_epaper_callback(GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS, MAX_H
|
|||
display->setCursor(0, y);
|
||||
|
||||
display->setFont(&FreeSans12pt7b);
|
||||
display->print("Gas: ");
|
||||
display->print("VOC: ");
|
||||
|
||||
y += FreeSans12pt7b.yAdvance;
|
||||
display->setCursor(0, y);
|
||||
|
|
Loading…
Reference in a new issue