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: EthernetNetIf mbed
Display.h
- Committer:
- ikon
- Date:
- 2011-02-27
- Revision:
- 2:456410210d03
File content as of revision 2:456410210d03:
// color definitions (H = half) #define BLACK 0x0000 #define HBLUE 0x0015 #define BLUE 0x001F #define HRED 0xB800 #define RED 0xF800 #define HGREEN 0x05E0 #define GREEN 0x07E0 #define HCYAN 0x05F5 #define CYAN 0x07FF #define HMAGENTA 0x8010 #define MAGENTA 0xB815 #define HYELLOW 0xC5E0 #define YELLOW 0xFFE0 #define HWHITE 0xC5F5 #define WHITE 0xFFFF // Define Spectrum colors static const uint16_t colors [15] = { BLACK,HBLUE,HRED,HMAGENTA,HGREEN,HCYAN,HYELLOW,HWHITE,BLUE,RED,MAGENTA,GREEN,CYAN,YELLOW,WHITE }; #define HRES 320 // X axis # of pixels #define VRES 240 // Y axis # of pixels #define START_X 31 #define START_Y 23 void cls(void); void Display_Home(void); void LcdGotoXY( uint8_t x, uint8_t y); void LcdGotoXY8( uint8_t x, uint8_t y); void LcdChr8x8 ( uint8_t ch); void LcdStr8x8 ( char *dataPtr ); void LcdChr ( uint8_t ch ); void LcdStr ( char *dataPtr ); unsigned char scr2lcd(char *scrfile); void display_rgb(unsigned int data); void ShowPalette256(void); void Dir(void); void SldShw(void); void LCD_test(void); void initialization(void);