e-paper whereabouts board program

Dependencies:   SDFileSystem mbed

Revision:
1:cb28911c7ba5
Parent:
0:e4c67c26ba3f
--- a/eink.h	Sun May 01 03:12:28 2016 +0000
+++ b/eink.h	Tue May 23 05:06:14 2017 +0000
@@ -1,10 +1,13 @@
-void initPort();    //initialize port
-void clrdisp( bool color ); //clear screen 0:Black 1:White
-void powerOff();    //turn off the power
-void powerOn(); //turn on the power
+/* EDP control program */
 
-void dispbmp(FILE *fp );    //draw BMP(monochrome) file of fp(File Pointer) at locate(0,0)
-                            //BMP width and hight size is multiples of 8pixel
-void dispbmp(FILE *fp , int xpos , int ypos);   //draw BMP file of fp(File Pointer) at locate(xpos,ypos)
-                                                //BMP width and hight size is multiples of 8pixel
-                                                //locate parametors are multiples of 8pixel
+#define EDP_WIDTH 800   //EDP width
+#define EDP_HEIGHT 600  //EDP height
+#define EDP_BLACK 0     //for black drawing  
+#define EDP_WHITE 1     //for white drawing
+#define EDP_BLACK_WHITE 2     //for black and white drawing
+
+void initPort();            //Initialize port
+void clrDisp( char color ); //fill the EDP
+void powerOff();            //turn off EDP
+void powerOn();             //turn on EDP
+void dispBmp( FILE *fp , char drawMode );//dwaw bmp image (bmp is 800x600 and monochrome color only)