Harry Chen / Mbed 2 deprecated EInkTest

Dependencies:   EPD_GDEW075T8 mbed

Revision:
2:686cb2cf459f
Parent:
1:4083aff0fa16
Child:
3:c31bcab79c10
--- a/main.cpp	Mon Oct 15 03:53:31 2018 +0000
+++ b/main.cpp	Mon Oct 15 04:12:49 2018 +0000
@@ -2,10 +2,18 @@
 #include "GDEW075T8.h"
 #include "DemoPixelSource.h"
 
+// TODO: use real pin name
+DigitalOut nCS(D1);
+DigitalOut nDC(D2);
+DigitalOut nRST(D3);
+DigitalIn ready(D4);
+SPI spi(D5, D6, D7, D8);
+
 int main() {
     
     GDE::PixelSource demoSource = GDE::DemoPixelSource();
     
+    GDE::setup(&nCS, &nDC, &nRST, &ready, &spi);
     GDE::start();
     GDE::showPixels(demoSource);
     GDE::stop();