Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
Diff: C12832/TextDisplay.h
- Revision:
- 9:58eb378727d9
- Parent:
- 8:80d49dd91542
- Child:
- 10:0b5e0dfee08e
--- a/C12832/TextDisplay.h Wed Oct 01 13:27:35 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/* mbed TextDisplay Library Base Class
- * Copyright (c) 2007-2009 sford
- * Released under the MIT License: http://mbed.org/license/mit
- *
- * A common base class for Text displays
- * To port a new display, derive from this class and implement
- * the constructor (setup the display), character (put a character
- * at a location), rows and columns (number of rows/cols) functions.
- * Everything else (locate, printf, putc, cls) will come for free
- *
- * The model is the display will wrap at the right and bottom, so you can
- * keep writing and will always get valid characters. The location is
- * maintained internally to the class to make this easy
- */
-
-#ifndef MBED_TEXTDISPLAY_H
-#define MBED_TEXTDISPLAY_H
-
-#include "mbed.h"
-
-/**
- * TextDisplay interface
- */
-class TextDisplay : public Stream {
-public:
-
- /**
- * Create a TextDisplay interface
- *
- * @param name The name used in the path to access the strean through the filesystem
- */
- TextDisplay(const char *name = NULL);
-
- /**
- * Output a character at the given position
- *
- * @param column column where charater must be written
- * @param row where character must be written
- * @param c the character to be written to the TextDisplay
- */
- virtual void character(int column, int row, int c) = 0;
-
- /**
- * Return number of rows on TextDisplay
- *
- * @results number of rows
- */
- virtual int rows() = 0;
-
- /**
- * Return number if columns on TextDisplay\
- *
- * @results number of rows
- */
- virtual int columns() = 0;
-
- // 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();
-
- /**
- * Change the cursor position to column, row (in pixels)
- */
- virtual void locate(int column, int row);
-
- virtual void foreground(uint16_t colour);
- virtual void background(uint16_t colour);
- // putc (from Stream)
- // printf (from Stream)
-
-protected:
-
- virtual int _putc(int value);
- virtual int _getc();
-
- // character location
- uint16_t _column;
- uint16_t _row;
-
- // colours
- uint16_t _foreground;
- uint16_t _background;
- char *_path;
-};
-
-#endif
