.

Dependencies:   BurstSPI EaEpaper mbed

Fork of epaper_mbed_130411_KL25Z by Peter Drescher

Files at this revision

API Documentation at this revision

Comitter:
dreschpe
Date:
Sun Nov 10 19:33:44 2013 +0000
Child:
1:5ba919589a12
Child:
2:e1e4e20e6b26
Commit message:
Test program for E.Paper lib and KL25Z board

Changed in this revision

BurstSPI.lib Show annotated file Show diff for this revision Revisions of this file
EaEpaper.lib Show annotated file Show diff for this revision Revisions of this file
TFT_fonts.lib Show annotated file Show diff for this revision Revisions of this file
TSI.lib Show annotated file Show diff for this revision Revisions of this file
graphics.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BurstSPI.lib	Sun Nov 10 19:33:44 2013 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/Sissors/code/BurstSPI/#7d9b64d67b22
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EaEpaper.lib	Sun Nov 10 19:33:44 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dreschpe/code/EaEpaper/#1f3672176ca3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TFT_fonts.lib	Sun Nov 10 19:33:44 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dreschpe/code/TFT_fonts/#76774250fcec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TSI.lib	Sun Nov 10 19:33:44 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/emilmont/code/TSI/#507b1f67804b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics.h	Sun Nov 10 19:33:44 2013 +0000
@@ -0,0 +1,37 @@
+static char Santa1[] = {
+  0x07, 0x00, 0x00, // XXXXX___, XXXXXXXX, X
+  0x05, 0x00, 0x00, // XXXXX_X_, XXXXXXXX, X
+  0x07, 0x00, 0x00, // XXXXX___, XXXXXXXX, X
+  0x07, 0xC0, 0x00, // XXXXX___, __XXXXXX, X
+  0x07, 0xE0, 0x00, // XXXXX___, ___XXXXX, X
+  0x07, 0xF0, 0x00, // XXXXX___, ____XXXX, X
+  0x0F, 0xF8, 0x00, // XXXX____, _____XXX, X
+  0x1c, 0x08, 0x00, // XXX___XX, XXXX_XXX, X
+  0x08, 0xA8, 0x00, // XXXX_XXX, _X_X_XXX, X
+  0x0C, 0x08, 0x00, // XXXX__XX, XXXX_XXX, X
+  0x06, 0x28, 0x00, // XXXXX__X, XX_X_XXX, X
+  0x03, 0x98, 0x00, // XXXXXX__, _XX__XXX, X
+  0x0d, 0xfe, 0x00, // XXXX__X_, _______X, X
+  0x78, 0xf3, 0x00, // X____XXX, ____XX__, X
+  0x50, 0x61, 0x80, // X_X_XXXX, X__XXXX_, _
+  0xd0, 0x60, 0x80, // __X_XXXX, X__XXXXX, _
+  0x90, 0x00, 0x80, // _XX_XXXX, XXXXXXXX, _
+  0x90, 0x01, 0x00, // _XX_XXXX, XXXXXXX_, X
+  0x90, 0x01, 0x00, // _XX_XXXX, XXXXXXX_, X
+  0xd0, 0x03, 0x00, // __X_XXXX, XXXXXX__, X
+  0x70, 0x02, 0x00, // X___XXXX, XXXXXX_X, X
+  0x1f, 0xfc, 0x00, // XXX_____, ______XX, X
+  0x07, 0xfc, 0x00, // XXXXX___, ______XX, X
+  0x07, 0x0c, 0x00, // XXXXX___, XXXX__XX, X
+  0x07, 0x0c, 0x00, // XXXXX___, XXXX__XX, X
+  0x07, 0xbc, 0x00, // XXXXX___, _X____XX, X
+  0x03, 0x38, 0x00, // XXXXXX__, XX___XXX, X
+  0x00, 0x20, 0x00, // XXXXXXXX, XX_XXXXX, X
+};
+
+Bitmap bitmSan1 = {
+  17, // XSize
+  28, // YSize 
+  3,  // Bytes in Line
+  Santa1 ,  // Pointer to picture data 
+};
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 10 19:33:44 2013 +0000
@@ -0,0 +1,40 @@
+#include "mbed.h"
+#include "EaEpaper.h"
+#include "Arial28x28.h"
+#include "Arial12x12.h"
+#include "font_big.h"
+#include "graphics.h"
+
+EaEpaper epaper(PTD7,            // PWR_CTRL
+                PTD6,            // BORDER
+                PTE31,           // DISCHARGE
+                PTA17,           // RESET_DISP
+                PTA16,           // BUSY
+                PTC17,           // SSEL
+                PTD4,            // PWM
+                PTD2,PTD3,PTD1,  // MOSI,MISO,SCLK
+                PTE0,PTE1);      // SDA,SDL 
+ 
+int main() {
+
+    epaper.cls();
+    epaper.set_font((unsigned char*) Arial28x28);  // select the font
+    epaper.locate(5,20);
+    epaper.printf("Hello Mbed");
+    epaper.rect(3,15,150,50,1);
+     
+    epaper.set_font((unsigned char*) Arial12x12);
+    epaper.locate(5,60);
+    epaper.printf("small Font");
+    epaper.set_font((unsigned char*) Neu42x35);
+    epaper.locate(5,70);
+    epaper.printf("big Font");
+    
+    epaper.write_disp(); // update screen
+    
+    wait(5);
+    epaper.fillcircle(180,30,22,1);
+    epaper.circle(160,150,20,1);
+    epaper.write_disp(); // update screen
+   
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Nov 10 19:33:44 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9c8f0e3462fb
\ No newline at end of file