Closed ArchibaldBienetre closed 4 years ago
this works
import erika.erika e=erika.erika.Erika("/dev/ttyAMA0") e.move_right() e.move_right() e.move_left() e.move_left() e.print_ascii("M") e.move_left() e.move_left() e.print_ascii("M") e.print_ascii(" ") e.print_ascii(" ") e.print_ascii(" ") e.print_ascii(" ") e.print_ascii("M") e.move_left() e.print_ascii("M") e.print_ascii("Hallo") e._print_raw("8C") e.move_left() e.print_ascii("o") e.move_left() e.move_left() e.print_ascii("l") e.move_left() e.move_left() e.print_ascii("l") e.move_left() e.move_left() e.print_ascii("a") e.move_left() e.move_left() e.print_ascii("H")
better use
A9H | kein Zeilenvorschub (Doppeldruck) | Das diesem Kode folgende Zeichen wird ohne Vorschub gedruckt (auf der Stelle drucken) |
---|
or
8DH | Rückwärtsdruck OFF | Rückwärtsdruck aus (*); Vorwärtsdruck (Zeichendruck, dann Vorschub) |
---|---|---|
8EH | Rückwärtsdruck ON | Rückwärtsdruck ein (*); Rückwärtsdruck (erst Vorschub rückwärts, dann Zeichendruck) |
I'd be glad if we could merge this issue this Wednesday.
https://github.com/Chaostreff-Potsdam/erika3004/pull/63 depends on this branch and is good for merge already as well.
Fixed! Other rework goes to https://github.com/Chaostreff-Potsdam/erika3004/issues/60
We need to support the correction tape, e.g. for #29 (Tetris).
It seems one control character is there to switch from correction to normal tape, one to switch back. The actual deletion requires the implementer to keep track of what letter was there before - and overwrite it with with itself using the correction tape.
See #29:
Concrete requirements:
In Erika and the CharacterBasedErikaMock...
delete_character(self, letter)
function existsswitch_to_correction_tape(self)
andswitchToNormalTape(self)
should be implemented for more fine-grained controlDiscussion: