diff options
Diffstat (limited to 'src/init.lua')
-rw-r--r-- | src/init.lua | 3 |
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) |