aconno acd52832 EPD example. With partial refresh.

Dependencies:   GDEP015OC1 mbed

Revision:
0:4860cf6aa686
diff -r 000000000000 -r 4860cf6aa686 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 13 11:37:18 2017 +0000
@@ -0,0 +1,29 @@
+/* Copyright (c) 2016 Aconno. All Rights Reserved.
+ *
+ * Licensees are granted free, non-transferable use of the information. NO
+ * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
+ * the file.
+ *
+ */
+
+#include "mbed.h"
+#include "GDEP015OC1.h"
+#include "pictures.h"
+
+SPI spi(p3, NC, p4);
+GDEP015OC1 epd = GDEP015OC1(spi, p5, p6, p7, p8);
+
+int main(){
+    epd.empty();
+    epd.writeFull();
+    while(true){
+        for(uint16_t x=0;x<5000;x++)
+            epd.fill(ir0[x], x);
+        epd.write();
+        wait_ms(500);
+        for(uint16_t x=0;x<5000;x++)
+            epd.fill(ir1[x], x);
+        epd.write();
+        wait_ms(500);
+    }
+}
\ No newline at end of file