SHOW:
|
|
- or go back to the newest paste.
1 | local printer = peripheral.wrap("bottom") | |
2 | ||
3 | if printer.getPaperLevel() == 0 then | |
4 | - | error("There is no paper in the printer!") |
4 | + | error("There is no paper in the printer!") |
5 | end | |
6 | if printer.getInkLevel() == 0 then | |
7 | - | error("There is no ink in the printer!") |
7 | + | error("There is no ink in the printer!") |
8 | end | |
9 | ||
10 | if printer.newPage() then | |
11 | for i = 2,6 do | |
12 | - | printer.setCursorPos(10, 9) |
12 | + | printer.setCursorPos(11,i) |
13 | - | printer.write("Lycodon") |
13 | + | printer.write("#") |
14 | - | printer.setCursorPos(2, 10) |
14 | + | end |
15 | - | printer.write("Leitfaden fåBCr AnfåA4nger") |
15 | + | printer.setCursorPos(11,7) |
16 | printer.write("######") | |
17 | - | printer.setPageTitle("Lycodon") |
17 | + | |
18 | - | printer.endPage() |
18 | + | printer.setCursorPos(10,9) |
19 | printer.write("Lycodon") | |
20 | - | error("Page could not be created.") |
20 | + | printer.setCursorPos(2,10) |
21 | printer.write("Infonachricht hier hin") | |
22 | ||
23 | printer.setCursorPos(9,12) | |
24 | printer.write("-Deutsch-") | |
25 | ||
26 | printer.setCursorPos(3,15) | |
27 | printer.write("Zum Blättern scrollen") | |
28 | printer.setCursorPos(6,16) | |
29 | printer.write("oder <-- und -->") | |
30 | ||
31 | printer.setPageTitle("Page 0") | |
32 | printer.endPage() | |
33 | else | |
34 | error("Page could not be created.") | |
35 | end |