A TextDisplay driver that supports graphical displays using on of the SED133x conrtrolers. Allows stdout and stderr output to be redirected to the display.
Diff: Terminal.cpp
- Revision:
- 5:684f79f70ac9
- Parent:
- 1:18c56f038905
--- a/Terminal.cpp Sat Jan 29 20:06:34 2011 +0000 +++ b/Terminal.cpp Sat Jan 29 20:31:14 2011 +0000 @@ -10,7 +10,21 @@ Terminal::Terminal(PinName tx, PinName rx, const char *name) : TextDisplay(name), _serial(tx, rx) { cls(); } - + /** Create the TextDisplay interface + * + * reset PinName for reset + * nRead PinName for /read + * nWrite PinName for /write + * nSelect PinName for /select + * addr0 PinName for addr0 + * d0 - d7 PinName for D0 -D7 + * hor_dots horizontal resolution of display (in pixels), default: 256 + * vert_dots vertical resolution of display (in pixels), default: 128 + * char_width diaply width of character (in pixels), default: 6 + * char_height display height of character (in pixels), default: 10 + * name name to be used in pathname of the stream (defaults to "sed133x") + * @param name The name used in the path to access the strean through the filesystem + */ void Terminal::character(uint16_t column, uint16_t row, int c) { // Cursor Home <ESC>[{ROW};{COLUMN}H _serial.printf("\033[%u;%uH%c", row + 1, column + 1, c);