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.
Fork of KS0108 by
Diff: KS0108.h
- Revision:
- 4:bdc04bb2ffc1
- Parent:
- 2:03d27b3fce6e
- Child:
- 5:e4b50f4c13a8
--- a/KS0108.h Fri Feb 04 02:32:25 2011 +0000 +++ b/KS0108.h Thu Feb 10 03:06:19 2011 +0000 @@ -23,7 +23,7 @@ #ifndef KS0108_H #define KS0108_H -#define VERSION 1.1 +#define VERSION 1.11 #include "mbed.h" #include "SystemFont5x7.h" @@ -74,7 +74,7 @@ #define FONT_WIDTH_TABLE 6 /*************************************************************************************/ -#define MAX_IMG_SIZE 127*64 +#define MAX_IMG_SIZE 128*64 typedef struct { unsigned int imgWidth; @@ -84,16 +84,6 @@ /**************************************************************************************/ -typedef struct { - unsigned int x; - unsigned int y; - unsigned int page; -} LCDCoord; - - -/****************************************************************************************/ - - class KS0108 { public: @@ -167,6 +157,26 @@ * */ void ClearScreen(); + + + /** + *@brief Turn on display + * + *@param none + *@return none + * + */ + void TurnOn(); + + + /** + *@brief Turn Off display + * + *@param none + *@return none + * + */ + void TurnOff(); /*******************************Graphic functions************************************************/ @@ -345,12 +355,12 @@ /** *@brief Draws an image on screen. - *@param PictureData 128x64 image array + *@param IamgeData 128x64 image array *@return none * * */ - void FullScreenBMP (unsigned char *PictureData); + void FullScreenBMP (unsigned char *ImageData); /** @@ -434,8 +444,7 @@ DigitalInOut CS1; unsigned int color; - unsigned int* Font; - LCDCoord Coord; + unsigned int* Font; };