epaper

Dependents:   epaper_mbed_test_copy1

Fork of EaEpaper by Peter Drescher

Files at this revision

API Documentation at this revision

Comitter:
fenoth
Date:
Tue Apr 08 10:07:49 2014 +0000
Parent:
2:1f3672176ca3
Commit message:
new

Changed in this revision

main.c Show annotated file Show diff for this revision Revisions of this file
diff -r 1f3672176ca3 -r 6e990a69c6cf main.c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.c	Tue Apr 08 10:07:49 2014 +0000
@@ -0,0 +1,30 @@
+#include "mbed.h"
+#include "EaEpaper.h"
+#include "QR_Encode.h"
+
+
+EaEpaper epaper;
+
+int main()
+{
+  string d;
+  d = "alufit";
+  
+  BYTE QR_m_data[3917]; //max possible bits resolution 177*177/8+1
+  int QR_width=EncodeData(3,3,d,0,QR_m_data);
+
+  for(int y=0;y<QR_width;y++) {
+  for(int x=0;x<QR_width;x++) {
+    int value = get_next_bit();
+    epaper.clear();
+    
+    while(1) {
+        epaper.write(img0_bits);
+        wait(10);
+        epaper.write(x,y,value);
+        wait(10);
+    }
+     
+   }}
+  return 0;
+}