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-17
- Revision:
- 3:c31bcab79c10
- Parent:
- 2:686cb2cf459f
- Child:
- 5:326a3e0e6950
File content as of revision 3:c31bcab79c10:
#include "mbed.h"
#include "GDEW075T8.h"
#include "DemoPixelSource.h"
// TODO: use real pin name
DigitalOut nCS(PA_4);
DigitalOut nDC(PA_1);
DigitalOut nRST(PA_3);
DigitalIn ready(PA_0);
SPI spi(PA_7, PA_6, PA_5);
int main() {
GDE::PixelSource demoSource = GDE::DemoPixelSource();
GDE::setup(&nCS, &nDC, &nRST, &ready, &spi);
GDE::start();
GDE::showPixels(demoSource);
GDE::stop();
}
