SHOW:
|
|
- or go back to the newest paste.
| 1 | - | text = peripheral.wrap('back')
|
| 1 | + | monitor = peripheral.wrap("back")
|
| 2 | - | text.clear() |
| 2 | + | number = 1 |
| 3 | - | text.setTextScale(4) |
| 3 | + | |
| 4 | - | number = 2 |
| 4 | + | function couleur() |
| 5 | if number == 1 then | |
| 6 | return colors.blue | |
| 7 | elseif number == 2 then | |
| 8 | - | if number == 2 then |
| 8 | + | |
| 9 | elseif number == 3 then | |
| 10 | return colors.cyan | |
| 11 | elseif number == 4 then | |
| 12 | return colors.gray | |
| 13 | elseif number == 5 then | |
| 14 | return colors.green | |
| 15 | elseif number == 6 then | |
| 16 | return colors.lightBlue | |
| 17 | elseif number == 7 then | |
| 18 | return colors.lightGray | |
| 19 | - | return colors.lightBlue |
| 19 | + | |
| 20 | return colors.lime | |
| 21 | elseif number == 9 then | |
| 22 | return colors.magenta | |
| 23 | elseif number == 10 then | |
| 24 | return colors.orange | |
| 25 | elseif number == 11 then | |
| 26 | return colors.pink | |
| 27 | elseif number == 12 then | |
| 28 | return colors.purple | |
| 29 | - | return colors.pink |
| 29 | + | |
| 30 | return colors.red | |
| 31 | elseif number == 14 then | |
| 32 | return colors.yellow | |
| 33 | end | |
| 34 | - | elseif number == 15 then |
| 34 | + | |
| 35 | while true do | |
| 36 | if number == 15 then | |
| 37 | - | if number == 16 then |
| 37 | + | |
| 38 | end | |
| 39 | - | else |
| 39 | + | monitor.clear() |
| 40 | - | text.clear() |
| 40 | + | monitor.setCursorPos(1,1) |
| 41 | - | text.setCursorPos(1,1) |
| 41 | + | monitor.setTextColor(couleur()) |
| 42 | - | text.setTextColor(couleur) |
| 42 | + | monitor.write("En cours de programmation !!")
|
| 43 | - | text.write("Silence, on mine")
|
| 43 | + | number = number + 1 |
| 44 | - | number = number + 1 |
| 44 | + | |
| 45 | - | print(number) |
| 45 | + | end |