Fork of Silabs MemoryLCD library
Dependents: demoUI whrmDemoUI Host_Software_MAX32664GWEB_HR_EXTENDED Host_Software_MAX32664GWEC_SpO2_HR-_EXTE ... more
C++ library for Sharp Microelectronics 1.28 inch LCD TFT, LS013B7DH03, SPI bus. Forked from Silicon Labs MemoryLCD display driver.
Diff: TextDisplay.cpp
- Revision:
- 4:b02dfd360729
- Parent:
- 0:a0faa86660d4
- Child:
- 11:0f8ae10b308d
--- a/TextDisplay.cpp Tue May 05 14:32:28 2015 +0000 +++ b/TextDisplay.cpp Thu May 28 16:05:09 2015 +0000 @@ -64,20 +64,6 @@ _background = colour; } -bool TextDisplay::claim (FILE *stream) { - if ( _path == NULL) { - fprintf(stderr, "claim requires a name to be given in the instantiator of the TextDisplay instance!\r\n"); - return false; - } - if (freopen(_path, "w", stream) == NULL) { - // Failed, should not happen - return false; - } - // make sure we use line buffering - setvbuf(stdout, NULL, _IOLBF, columns()); - return true; -} - void TextDisplay::printf(const char* format, ...) { char buffer[MAX_PRINTF_CHARS + 1] = { 0 }; uint32_t iterator = 0;