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:
- 6:0d38aa19198e
- Parent:
- 5:326a3e0e6950
File content as of revision 6:0d38aa19198e:
#include "mbed.h"
#include "GDEW075T8.h"
#include "DemoPixelSource.h"
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() {
spi.frequency(4000000);
GDE::DemoPixelSource *demoSource = new GDE::DemoPixelSource();
GDE::setup(&nCS, &nDC, &nRST, &ready, &spi);
GDE::start();
while(true) {
demoSource->setColor(false);
GDE::showPixels(demoSource);
demoSource->setColor(true);
GDE::showPixels(demoSource);
}
GDE::stop();
}
