Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- m = peripheral.wrap("right") --magcard
- lbl = "BN Credit"
- clear()
- print("VerificaSaldo (C) Lego11")
- print("")
- print("Inserire la carta")
- m.setInsertCardLight(true)
- za,rawCredito = os.pullEvent("mag_swipe")
- m.setInsertCardLight(false)
- credito = tonumber(rawCredito)
- while true do
- print("La carta ha una disponibilità di "..credito.." IC.")
- print("")
- print("Premere un tasto qualsiasi per uscire")
- os.pullEvent("key")
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment