summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-05-22 17:22:16 +0200
committerDerf Null <derf@finalrewind.org>2023-05-22 17:22:16 +0200
commit2b925de7db062516c480e4c02afb26c0d5373a80 (patch)
treeccd7d3fe9d75fa631f1ccbc254577b0895d5b878
parent3bc881e12af2c812f87193fd72aa0141de5a28f8 (diff)
move ppm down a line
-rw-r--r--src/init.lua3
1 files changed, 2 insertions, 1 deletions
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)