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@3:c31bcab79c10, 2018-10-17 (annotated)
- Committer:
- HarryChen
- Date:
- Wed Oct 17 12:56:19 2018 +0000
- Revision:
- 3:c31bcab79c10
- Parent:
- 2:686cb2cf459f
- Child:
- 5:326a3e0e6950
Use correct pin names
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| HarryChen | 0:770c45c51d26 | 1 | #include "mbed.h" |
| HarryChen | 0:770c45c51d26 | 2 | #include "GDEW075T8.h" |
| HarryChen | 1:4083aff0fa16 | 3 | #include "DemoPixelSource.h" |
| HarryChen | 0:770c45c51d26 | 4 | |
| HarryChen | 2:686cb2cf459f | 5 | // TODO: use real pin name |
| HarryChen | 3:c31bcab79c10 | 6 | DigitalOut nCS(PA_4); |
| HarryChen | 3:c31bcab79c10 | 7 | DigitalOut nDC(PA_1); |
| HarryChen | 3:c31bcab79c10 | 8 | DigitalOut nRST(PA_3); |
| HarryChen | 3:c31bcab79c10 | 9 | DigitalIn ready(PA_0); |
| HarryChen | 3:c31bcab79c10 | 10 | SPI spi(PA_7, PA_6, PA_5); |
| HarryChen | 2:686cb2cf459f | 11 | |
| HarryChen | 0:770c45c51d26 | 12 | int main() { |
| HarryChen | 1:4083aff0fa16 | 13 | |
| HarryChen | 1:4083aff0fa16 | 14 | GDE::PixelSource demoSource = GDE::DemoPixelSource(); |
| HarryChen | 1:4083aff0fa16 | 15 | |
| HarryChen | 2:686cb2cf459f | 16 | GDE::setup(&nCS, &nDC, &nRST, &ready, &spi); |
| HarryChen | 1:4083aff0fa16 | 17 | GDE::start(); |
| HarryChen | 1:4083aff0fa16 | 18 | GDE::showPixels(demoSource); |
| HarryChen | 1:4083aff0fa16 | 19 | GDE::stop(); |
| HarryChen | 0:770c45c51d26 | 20 | } |
