Harry Chen / Mbed 2 deprecated EInkTest

Dependencies:   EPD_GDEW075T8 mbed

Revision:
5:326a3e0e6950
Parent:
3:c31bcab79c10
Child:
6:0d38aa19198e
--- a/main.cpp	Wed Oct 17 13:06:43 2018 +0000
+++ b/main.cpp	Wed Oct 17 14:00:37 2018 +0000
@@ -11,10 +11,17 @@
 
 int main() {
     
-    GDE::PixelSource demoSource = GDE::DemoPixelSource();
+    spi.frequency(4000000);
+    
+    GDE::DemoPixelSource *demoSource = new GDE::DemoPixelSource();
     
     GDE::setup(&nCS, &nDC, &nRST, &ready, &spi);
     GDE::start();
-    GDE::showPixels(demoSource);
+    while(true){
+        demoSource->setColor(false);
+        GDE::showPixels(demoSource);
+        demoSource->setColor(true);
+        GDE::showPixels(demoSource);
+    }
     GDE::stop();
 }