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: TextDisplay.h
- Revision:
- 4:0cbf500f8650
- Parent:
- 3:c84bc6d1dc52
- Child:
- 7:d79600310cfe
diff -r c84bc6d1dc52 -r 0cbf500f8650 TextDisplay.h --- a/TextDisplay.h Sat Jan 29 13:02:38 2011 +0000 +++ b/TextDisplay.h Sat Jan 29 20:06:34 2011 +0000 @@ -19,19 +19,22 @@ #include "mbed.h" #include "mbed.h" -/** Text diaplay class, includes drives for different types of displays - * +/** Text diaplay class, use one the derived classes * Example: * @code - * // simple test for TextDisplay class - * #include "mbed.h" - * #include "TextDisplay.h" - * - * - * - * int main() { - * lcd.printf("Hello TextDisplay world!\r\n"); - * } + / simple test for TextDisplay class + #include "mbed.h" + #include "sed133xLCD.h" + + sed133xLCD lcd(p5, p6, p7, p8, p9, p28, p27, p26, p25, p24, p23, p22, p21,256,128, 6,9, "lcd"); + + + int main() { + lcd.printf("Hello TextDisplay world!\r\n"); + lcd.claim(stdout); + printf("hello stream world\r\n"); + } + * @endcode */