-
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user