Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EPD_GDEW075T8 mbed
Diff: main.cpp
- Revision:
- 5:326a3e0e6950
- Parent:
- 3:c31bcab79c10
- Child:
- 6:0d38aa19198e
diff -r dce69bf08051 -r 326a3e0e6950 main.cpp
--- 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();
 }
    