Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("right")
- p.clear()
- button_plus = {
- "---",
- " + ",
- "---"
- }
- button_moin = {
- "---",
- " + ",
- "---"
- }
- for k,v in ipairs(button_plus) do
- p.setCursorPos(4,4 + k)
- p.write(v)
- end
- for k,v in ipairs(button_pmoin) do
- p.setCursorPos(12,4 + k)
- p.write(v)
- end
- p.setCursorPos(10, 7)
- p.write(nombre)
- while true do
- event, side, xPos, yPos = os.pullEvent("monitor_touch")
- print("X: "..xPos.."Y:"..yPos)
- if xPos > 4 and xPOs < 8 and yPos > 4 and yPos < 8
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement