SHOW:
|
|
- or go back to the newest paste.
| 1 | mon.clear() | |
| 2 | ||
| 3 | tank = peripheral.wrap("left")
| |
| 4 | ||
| 5 | mon = peripheral.wrap("back")
| |
| 6 | ||
| 7 | amount = tank.getStored().amount | |
| 8 | ||
| 9 | while true do | |
| 10 | ||
| 11 | - | mon.setCursorPos(1,1) |
| 11 | + | mon.setCursorPos(3,1) |
| 12 | ||
| 13 | - | mon.setTextColor(colors.lightBlue) |
| 13 | + | mon.setTextColor(colors.yellow) |
| 14 | ||
| 15 | - | mon.write("Kerose.")
|
| 15 | + | mon.write("LPG")
|
| 16 | ||
| 17 | mon.setCursorPos(1,3) | |
| 18 | ||
| 19 | mon.setTextColor(colors.white) | |
| 20 | ||
| 21 | mon.clearLine(1,3) | |
| 22 | ||
| 23 | formattedStored = string.format("%.1f",amount/1000)
| |
| 24 | ||
| 25 | mon.write(formattedStored.."mB") | |
| 26 | ||
| 27 | sleep(1) | |
| 28 | ||
| 29 | end | |
| 30 |