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
main.cpp
- Committer:
- HarryChen
- Date:
- 2018-10-15
- Revision:
- 2:686cb2cf459f
- Parent:
- 1:4083aff0fa16
- Child:
- 3:c31bcab79c10
File content as of revision 2:686cb2cf459f:
#include "mbed.h"
#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();
}
