.

Dependencies:   BurstSPI EaEpaper mbed

Fork of epaper_mbed_130411_KL25Z by Peter Drescher

Revision:
2:e1e4e20e6b26
Parent:
0:057244fcbbb6
diff -r 057244fcbbb6 -r e1e4e20e6b26 main.cpp
--- a/main.cpp	Sun Nov 10 19:33:44 2013 +0000
+++ b/main.cpp	Sun Nov 10 22:32:17 2013 +0000
@@ -19,22 +19,22 @@
 
     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.locate(5,20);                           // setup cursor
+    epaper.printf("Hello Mbed");                   // print text 
+    epaper.rect(3,15,150,50,1);                    // draw frame 
      
-    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.set_font((unsigned char*) Arial12x12);   // load font
+    epaper.locate(5,60);                            // setup cursor
+    epaper.printf("small Font");                    // print text
+    epaper.set_font((unsigned char*) Neu42x35);     // load font    
+    epaper.locate(5,70);                            // setup cursor
+    epaper.printf("big Font");                      // print text
     
-    epaper.write_disp(); // update screen
+    epaper.write_disp();                            // update screen           
     
-    wait(5);
-    epaper.fillcircle(180,30,22,1);
-    epaper.circle(160,150,20,1);
-    epaper.write_disp(); // update screen
+    wait(5);                                        // wait 5s 
+    epaper.fillcircle(180,30,22,1);                 // paint filled circle
+    epaper.circle(160,150,20,1);                    // paint circle
+    epaper.write_disp();                            // update screen           
    
 }