Added ability to use printf directly
Fork of LCD_DISCO_F429ZI by
Diff: LCD_DISCO_F429ZI.cpp
- Revision:
- 1:45d79100d676
- Parent:
- 0:dc55a068bc1a
diff -r dc55a068bc1a -r 45d79100d676 LCD_DISCO_F429ZI.cpp --- a/LCD_DISCO_F429ZI.cpp Thu Dec 17 10:26:56 2015 +0000 +++ b/LCD_DISCO_F429ZI.cpp Fri Feb 05 09:17:26 2016 +0000 @@ -141,6 +141,8 @@ void LCD_DISCO_F429ZI::Clear(uint32_t Color) { BSP_LCD_Clear(Color); + cursorX = 0; + cursorY = 0; } void LCD_DISCO_F429ZI::ClearStringLine(uint32_t Line) @@ -153,6 +155,12 @@ BSP_LCD_DisplayChar(Xpos, Ypos, Ascii); } +void LCD_DISCO_F429ZI::Cursor(uint16_t Xpos, uint16_t Ypos) +{ + cursorX = Xpos; + cursorY = Ypos; +} + void LCD_DISCO_F429ZI::DisplayStringAt(uint16_t X, uint16_t Y, uint8_t *pText, Text_AlignModeTypdef mode) { BSP_LCD_DisplayStringAt(X, Y, pText, mode);