Posted 24 July 2012 - 11:31 PM
I got into Lua coding about a day ago, and I want to make a digital clock that will update once every second. As of right now, I have the following.
I put the 'while(true) do' so that, from what I saw in other scripts, it would loop the next lines of code. But I don't know where to go from here, and any help would be greatly appreciated. The screen size is, at the moment, 4 wide and 3 tall.
a = ("1")
b = ("2")
c = ("3")
d = ("4")
e = ("5")
f = ("6")
g = ("7")
h = ("8")
i = ("9")
j = ("0")
funtion mainLoop()
while(true) do
yourmon = peripheral.wrap("left")
yourmon.setTextScale(5)
term.redirect(yourmon)
print("Test")
term.restore()
I put the 'while(true) do' so that, from what I saw in other scripts, it would loop the next lines of code. But I don't know where to go from here, and any help would be greatly appreciated. The screen size is, at the moment, 4 wide and 3 tall.