[Horus] GUI continued
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 510 KiB After Width: | Height: | Size: 510 KiB |
|
Before Width: | Height: | Size: 510 KiB After Width: | Height: | Size: 510 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
@@ -0,0 +1,19 @@
|
||||
local options = {
|
||||
{ "Source", SOURCE, 1 },
|
||||
{ "Min", VALUE, -1024 },
|
||||
{ "Max", VALUE, 1024 },
|
||||
{ "Color", COLOR, RED }
|
||||
}
|
||||
|
||||
local function create(zone, options)
|
||||
local pie = { zone=zone, options=options, counter=0 }
|
||||
print(options.Source)
|
||||
return pie
|
||||
end
|
||||
|
||||
function refresh(pie)
|
||||
pie.counter = pie.counter + 1
|
||||
lcd.drawNumber(pie.zone.x, pie.zone.y, pie.counter, LEFT + DBLSIZE + TEXT_COLOR);
|
||||
end
|
||||
|
||||
return { name="Counter", options=options, create=create, refresh=refresh }
|
||||