With added colors.
Fork of 4DGL-uLCD-SE by
Diff: uLCD_4DGL.h
- Revision:
- 6:b759b69cbaf9
- Parent:
- 5:8936798c19a3
- Child:
- 7:e39a44de229a
--- a/uLCD_4DGL.h Fri Nov 22 02:44:37 2013 +0000 +++ b/uLCD_4DGL.h Mon Nov 25 04:24:22 2013 +0000 @@ -64,11 +64,26 @@ #define BLITCOM '\x0A' #define PUTCHAR '\xFE' +#define MINIT '\xB1' +#define SBADDRESS '\xB9' +#define SSADDRESS '\xB8' +#define READBYTE '\xB7' +#define READWORD '\xB6' +#define WRITEBYTE '\xB5' +#define WRITEWORD '\xB4' +#define FLUSHMEDIA '\xB2' +#define DISPLAYIMAGE '\xB3' +#define DISPLAYVIDEO '\xBB' +#define DISPLAYFRAME '\xBA' + + // Screen answers #define ACK '\x06' #define NAK '\x15' + + // Screen states #define OFF '\x00' #define ON '\x01' @@ -266,7 +281,22 @@ void putc(char); void puts(char *); - +//Media Commands + int media_init(); + void set_byte_address(int, int); + void set_sector_address(int, int); + char read_byte(); + int read_word(); + void write_byte(int); + void write_word(int); + void flush_media(); + void display_image(int, int); + void display_video(int, int); + void display_frame(int, int, int); + + + + // Touch Command void touch_mode(char); @@ -330,3 +360,4 @@ +