frederic blanc / Mbed 2 deprecated sp5gfx1

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SPLC501C.h Source File

SPLC501C.h

00001 
00002 #define SCREEN_WIDTH     128
00003 #define SCREEN_HEIGHT    64
00004 #define PIXELS_PER_PAGE    8
00005 
00006 
00007 
00008 #define SPLC501C_DISPLAY_ON         0xAF
00009 #define SPLC501C_DISPLAY_OFF        0xAE
00010 
00011 #define SPLC501C_START_LINE        0x40
00012 
00013 #define SPLC501C_PAGE_ADDRESS        0xB0
00014 
00015 #define SPLC501C_COLUMN_ADDRESS_HI    0x10
00016 #define SPLC501C_COLUMN_ADDRESS_LO    0x00
00017 
00018 #define SPLC501C_ADC_NORMAL        0xA0
00019 #define SPLC501C_ADC_REVERSE        0xA1
00020 
00021 #define SPLC501C_DISPLAY_NORMAL        0xA6
00022 #define SPLC501C_DISPLAY_REVERSE    0xA7
00023 
00024 #define SPLC501C_DISPLAY_ALL_ON        0xA5
00025 #define SPLC501C_DISPLAY_ALL_OFF    0xA4
00026 
00027 #define SPLC501C_BIAS_19        0xA2
00028 #define SPLC501C_BIAS_15        0xA3
00029 
00030 #define SPLC501C_RMW_START        0xE0
00031 #define SPLC501C_RMW_END        0xEE
00032 
00033 #define SPLC501C_RESET            0xE2
00034 
00035 #define SPLC501C_COM0            0xC0
00036 #define SPLC501C_COM63            0xC8
00037 
00038 #define SPLC501C_POWERON        0x2F
00039 
00040 #define SPLC501C_VOLTAGE_RATIO        0x20
00041 
00042 #define SPLC501C_VOLUME_MODE        0x81
00043 #define SPLC501C_VOLUME_SET        0x00
00044 
00045 #define SPLC501C_PAGE_BLINKING_MODE    0xD5
00046 #define SPLC501C_PAGE_BLINKING_0    0x01
00047 #define SPLC501C_PAGE_BLINKING_1    0x02
00048 #define SPLC501C_PAGE_BLINKING_2    0x04
00049 #define SPLC501C_PAGE_BLINKING_3    0x08
00050 #define SPLC501C_PAGE_BLINKING_4    0x10
00051 #define SPLC501C_PAGE_BLINKING_5    0x20
00052 #define SPLC501C_PAGE_BLINKING_6    0x40
00053 #define SPLC501C_PAGE_BLINKING_7    0x80
00054 
00055 void GLCD_GoTo(unsigned char, unsigned char);
00056 void GLCD_WriteString5x7(char *);
00057 void GLCD_WriteString10x16(char *);
00058 void GLCD_Initialize(void);
00059 void GLCD_ClearScreen(void);
00060 void GLCD_Bitmap(char *, unsigned char, unsigned char, unsigned char, unsigned char);
00061 void GLCD_SetPixel(int x, int y, int color);