rename assets/epaper.lua to assets/boot.lua

This commit is contained in:
arne 2025-10-05 12:11:56 +02:00
commit 45831590dc
4 changed files with 38 additions and 4 deletions

33
assets/post_test.lua Normal file
View file

@ -0,0 +1,33 @@
local math = require('math')
local paper = require('paper')
paper.init()
paper.set_rotation("portrait")
paper.clear()
local width = paper.get_width()
local height = paper.get_height()
print(
'width: ' .. width,
'height: ' .. height
)
paper.clear()
paper.fill_rect(0, 0, width, height, 0x22)
for i = 0, 4 do
local off = 40 * i
local color
if i % 2 == 0 then
color = 0x22
else
color = 0xDD
end
paper.fill_rect(off, off, width - off, height - off, color)
end
paper.update()