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: WS2812 PixelArray
Fork of Wio_3G-example-blinky by
main.cpp@1:194e3cf73e72, 2018-08-25 (annotated)
- Committer:
- MACRUM
- Date:
- Sat Aug 25 09:08:54 2018 +0000
- Revision:
- 1:194e3cf73e72
- Parent:
- 0:1f050f0c9bec
Add setcolor function
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| MACRUM | 0:1f050f0c9bec | 1 | #include "mbed.h" |
| MACRUM | 1:194e3cf73e72 | 2 | #include "Wio_3G_LED.h" |
| MACRUM | 0:1f050f0c9bec | 3 | |
| MACRUM | 0:1f050f0c9bec | 4 | // main() runs in its own thread in the OS |
| MACRUM | 0:1f050f0c9bec | 5 | int main() |
| MACRUM | 0:1f050f0c9bec | 6 | { |
| MACRUM | 1:194e3cf73e72 | 7 | while (1) { |
| MACRUM | 1:194e3cf73e72 | 8 | setcolor(WS2812_RED); |
| MACRUM | 1:194e3cf73e72 | 9 | wait(0.5); |
| MACRUM | 1:194e3cf73e72 | 10 | setcolor(WS2812_BLACK); |
| MACRUM | 1:194e3cf73e72 | 11 | wait(0.5); |
| MACRUM | 0:1f050f0c9bec | 12 | } |
| MACRUM | 0:1f050f0c9bec | 13 | |
| MACRUM | 0:1f050f0c9bec | 14 | } |
