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@2:686cb2cf459f, 2018-10-15 (annotated)
- Committer:
- HarryChen
- Date:
- Mon Oct 15 04:12:49 2018 +0000
- Revision:
- 2:686cb2cf459f
- Parent:
- 1:4083aff0fa16
- Child:
- 3:c31bcab79c10
Customize pin name in main
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 | 2:686cb2cf459f | 6 | DigitalOut nCS(D1); |
| HarryChen | 2:686cb2cf459f | 7 | DigitalOut nDC(D2); |
| HarryChen | 2:686cb2cf459f | 8 | DigitalOut nRST(D3); |
| HarryChen | 2:686cb2cf459f | 9 | DigitalIn ready(D4); |
| HarryChen | 2:686cb2cf459f | 10 | SPI spi(D5, D6, D7, D8); |
| 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 | } |
