On board LED blinky example for Wio cellular targets - Seeed Wio 3G and Wio LTE-M1/NB1(BG96)
Dependencies: WS2812 PixelArray
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
- Child:
- 3:d48c9a684738
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 | } |