lego11

Verifica Saldo

May 11th, 2018
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function clear()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. end
  5.  
  6. m = peripheral.wrap("right") --magcard
  7. lbl = "BN Credit"
  8. clear()
  9. print("VerificaSaldo (C) Lego11")
  10. print("")
  11. print("Inserire la carta")
  12. m.setInsertCardLight(true)
  13. za,rawCredito = os.pullEvent("mag_swipe")
  14. m.setInsertCardLight(false)
  15. credito = tonumber(rawCredito)
  16. while true do
  17. print("La carta ha una disponibilità di "..credito.." IC.")
  18. print("")
  19. print("Premere un tasto qualsiasi per uscire")
  20. os.pullEvent("key")
  21. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment