Posted 30 July 2014 - 02:14 AM
I have been trying to work out what this means! I never seen this error before.
mon = peripheral.wrap("monitor_5")
while true do
mon.clear()
mon.setBackgroundColor(colors.black)
mon.clear()
mon.setTextScale(4)
mon.setCursorPos(4,2)
mon.setTextColor(colors.white)
mon.write("Touch Me!")
event, side, x, y = os.pullEvent("monitor_touch")
if x > 4 and X < 12 and y == 2 then
mon.setBackgroundColor(colors.blue)
mon.clear()
mon.setCursorPos(4,2)
mon.setTextColor(colors.yellow)
mon.write("That's Nice!")
sleep(5)
end
end
mon = peripheral.wrap("monitor_5")
while true do
mon.clear()
mon.setBackgroundColor(colors.black)
mon.clear()
mon.setTextScale(4)
mon.setCursorPos(4,2)
mon.setTextColor(colors.white)
mon.write("Touch Me!")
event, side, x, y = os.pullEvent("monitor_touch")
if x > 4 and X < 12 and y == 2 then
mon.setBackgroundColor(colors.blue)
mon.clear()
mon.setCursorPos(4,2)
mon.setTextColor(colors.yellow)
mon.write("That's Nice!")
sleep(5)
end
end