This commit is contained in:
2024-02-22 21:58:11 +01:00
parent 44a080a9a4
commit 2a890d1fe3
2 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ local event = require( "event" )
local oldW, oldH = gpu.getResolution() local oldW, oldH = gpu.getResolution()
local newW = 160 local newW = 160
local newH = 50 local newH = 50
local numberOfPanels = 2
local panelWidth = (newW / numberOfPanels)
gpu.setResolution(newW, newH) gpu.setResolution(newW, newH)
function clearScreen() function clearScreen()
@@ -111,7 +113,6 @@ function getTotal()
end end
function drawDesktop() function drawDesktop()
local halfWidth = newW / 2
drawLine(halfWidth, 3, 1, 40, 0xffffff) drawLine(halfWidth, 3, 1, 40, 0xffffff)
drawLine(1, 43, newW, 1, 0xffffff) drawLine(1, 43, newW, 1, 0xffffff)
gpu.set(1, 42, "Speicherzellen") gpu.set(1, 42, "Speicherzellen")

View File

@@ -5,7 +5,7 @@ local abfrage = io.read()
if abfrage == "Y" then if abfrage == "Y" then
print("Update und Installationsprogramm werden abgerufen...") print("Update und Installationsprogramm werden abgerufen...")
os.execute("gitrepo seesberger/PowerManager /home/PowerManager") os.execute("gitrepo seesberger/PowerManager /home/PowerManager")
dofile("/home/installer.lua") dofile("/home/PowerManager/installer.lua")
else else
print("Ohne Update fortfahren...") print("Ohne Update fortfahren...")
os.sleep(1) os.sleep(1)