From 2b925de7db062516c480e4c02afb26c0d5373a80 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Mon, 22 May 2023 17:22:16 +0200 Subject: move ppm down a line --- src/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index dc1f9eb..54a2a2d 100644 --- a/src/init.lua +++ b/src/init.lua @@ -76,8 +76,9 @@ function measure() ssd1306.show(fb.buf) return end - line1 = string.format("%8d ppm\n\n", co2) + line1 = string.format("%8d ppm\n", co2) line2 = string.format("%8d.%d c\n%8d.%d %%", raw_temp/65536 - 45, (raw_temp%65536)/6554, raw_humi/65536, (raw_humi%65536)/6554) + fb.y = 16 fb.print(fn, line1) fb.print(fn, line2) fb.draw_battery_8(114, 0, bat_p) -- cgit v1.2.3