Imrich Konkol / Mbed 2 deprecated lcd_tft_ssd2119

Dependencies:   EthernetNetIf mbed

Committer:
ikon
Date:
Sun Feb 27 23:39:10 2011 +0000
Revision:
2:456410210d03
1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ikon 2:456410210d03 1 // color definitions (H = half)
ikon 2:456410210d03 2 #define BLACK 0x0000
ikon 2:456410210d03 3 #define HBLUE 0x0015
ikon 2:456410210d03 4 #define BLUE 0x001F
ikon 2:456410210d03 5 #define HRED 0xB800
ikon 2:456410210d03 6 #define RED 0xF800
ikon 2:456410210d03 7 #define HGREEN 0x05E0
ikon 2:456410210d03 8 #define GREEN 0x07E0
ikon 2:456410210d03 9 #define HCYAN 0x05F5
ikon 2:456410210d03 10 #define CYAN 0x07FF
ikon 2:456410210d03 11 #define HMAGENTA 0x8010
ikon 2:456410210d03 12 #define MAGENTA 0xB815
ikon 2:456410210d03 13 #define HYELLOW 0xC5E0
ikon 2:456410210d03 14 #define YELLOW 0xFFE0
ikon 2:456410210d03 15 #define HWHITE 0xC5F5
ikon 2:456410210d03 16 #define WHITE 0xFFFF
ikon 2:456410210d03 17
ikon 2:456410210d03 18 // Define Spectrum colors
ikon 2:456410210d03 19 static const uint16_t colors [15] = {
ikon 2:456410210d03 20 BLACK,HBLUE,HRED,HMAGENTA,HGREEN,HCYAN,HYELLOW,HWHITE,BLUE,RED,MAGENTA,GREEN,CYAN,YELLOW,WHITE
ikon 2:456410210d03 21 };
ikon 2:456410210d03 22
ikon 2:456410210d03 23 #define HRES 320 // X axis # of pixels
ikon 2:456410210d03 24 #define VRES 240 // Y axis # of pixels
ikon 2:456410210d03 25
ikon 2:456410210d03 26 #define START_X 31
ikon 2:456410210d03 27 #define START_Y 23
ikon 2:456410210d03 28
ikon 2:456410210d03 29 void cls(void);
ikon 2:456410210d03 30 void Display_Home(void);
ikon 2:456410210d03 31 void LcdGotoXY( uint8_t x, uint8_t y);
ikon 2:456410210d03 32 void LcdGotoXY8( uint8_t x, uint8_t y);
ikon 2:456410210d03 33 void LcdChr8x8 ( uint8_t ch);
ikon 2:456410210d03 34 void LcdStr8x8 ( char *dataPtr );
ikon 2:456410210d03 35 void LcdChr ( uint8_t ch );
ikon 2:456410210d03 36 void LcdStr ( char *dataPtr );
ikon 2:456410210d03 37 unsigned char scr2lcd(char *scrfile);
ikon 2:456410210d03 38 void display_rgb(unsigned int data);
ikon 2:456410210d03 39 void ShowPalette256(void);
ikon 2:456410210d03 40 void Dir(void);
ikon 2:456410210d03 41 void SldShw(void);
ikon 2:456410210d03 42 void LCD_test(void);
ikon 2:456410210d03 43 void initialization(void);