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.

Files at this revision

API Documentation at this revision

Comitter:
stevew817
Date:
Thu May 28 16:05:09 2015 +0000
Parent:
3:c34c3e4e33fc
Child:
5:26851f9655cf
Commit message:
Get rid of reference to FILE to save a bunch of program size.

Changed in this revision

TextDisplay.cpp Show annotated file Show diff for this revision Revisions of this file
TextDisplay.h Show annotated file Show diff for this revision Revisions of this file
--- 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;
--- a/TextDisplay.h	Tue May 05 14:32:28 2015 +0000
+++ b/TextDisplay.h	Thu May 28 16:05:09 2015 +0000
@@ -49,11 +49,6 @@
     
     // functions that come for free, but can be overwritten
 
-    /** redirect output from a stream (stoud, sterr) to  display
-    * @param stream stream that shall be redirected to the TextDisplay
-    */
-    virtual bool claim (FILE *stream);
-
     /** clear screen
     */
     virtual void cls();