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.
Diff: SPLC501C.h
- Revision:
- 0:2052f61477b1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SPLC501C.h Wed Jul 06 12:06:40 2011 +0000 @@ -0,0 +1,61 @@ + +#define SCREEN_WIDTH 128 +#define SCREEN_HEIGHT 64 +#define PIXELS_PER_PAGE 8 + + + +#define SPLC501C_DISPLAY_ON 0xAF +#define SPLC501C_DISPLAY_OFF 0xAE + +#define SPLC501C_START_LINE 0x40 + +#define SPLC501C_PAGE_ADDRESS 0xB0 + +#define SPLC501C_COLUMN_ADDRESS_HI 0x10 +#define SPLC501C_COLUMN_ADDRESS_LO 0x00 + +#define SPLC501C_ADC_NORMAL 0xA0 +#define SPLC501C_ADC_REVERSE 0xA1 + +#define SPLC501C_DISPLAY_NORMAL 0xA6 +#define SPLC501C_DISPLAY_REVERSE 0xA7 + +#define SPLC501C_DISPLAY_ALL_ON 0xA5 +#define SPLC501C_DISPLAY_ALL_OFF 0xA4 + +#define SPLC501C_BIAS_19 0xA2 +#define SPLC501C_BIAS_15 0xA3 + +#define SPLC501C_RMW_START 0xE0 +#define SPLC501C_RMW_END 0xEE + +#define SPLC501C_RESET 0xE2 + +#define SPLC501C_COM0 0xC0 +#define SPLC501C_COM63 0xC8 + +#define SPLC501C_POWERON 0x2F + +#define SPLC501C_VOLTAGE_RATIO 0x20 + +#define SPLC501C_VOLUME_MODE 0x81 +#define SPLC501C_VOLUME_SET 0x00 + +#define SPLC501C_PAGE_BLINKING_MODE 0xD5 +#define SPLC501C_PAGE_BLINKING_0 0x01 +#define SPLC501C_PAGE_BLINKING_1 0x02 +#define SPLC501C_PAGE_BLINKING_2 0x04 +#define SPLC501C_PAGE_BLINKING_3 0x08 +#define SPLC501C_PAGE_BLINKING_4 0x10 +#define SPLC501C_PAGE_BLINKING_5 0x20 +#define SPLC501C_PAGE_BLINKING_6 0x40 +#define SPLC501C_PAGE_BLINKING_7 0x80 + +void GLCD_GoTo(unsigned char, unsigned char); +void GLCD_WriteString5x7(char *); +void GLCD_WriteString10x16(char *); +void GLCD_Initialize(void); +void GLCD_ClearScreen(void); +void GLCD_Bitmap(char *, unsigned char, unsigned char, unsigned char, unsigned char); +void GLCD_SetPixel(int x, int y, int color); \ No newline at end of file