Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x, y
- local idChannel = 124
- clear()
- for x=1,3 do
- for y=1,5 do
- paintutils.drawPixel(x, y, colors.red)
- end
- end
- for x=5,7 do
- for y=1,5 do
- paintutils.drawPixel(x, y, colors.green)
- end
- end
- modem = peripheral.wrap("left")
- while true do
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- if xpos >= 1 and xpos<=3 then
- modem.transmit(idChannel,idChannel,"grinder")
- elseif xpos >= 5 and xpos<=7 then
- modem.transmit(idChannel,idChannel,"ouvre")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement