On board LED blinky example for Wio cellular targets - Seeed Wio 3G and Wio LTE-M1/NB1(BG96)

Dependencies:   WS2812 PixelArray

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "Wio_Cellular_LED.h"
00003 
00004 #if !(defined(TARGET_WIO_3G) || defined(TARGET_WIO_BG96))
00005 #error This example only supports the Seeed Wio 3G or Wio LTE M1/NB1(BG96)
00006 #endif
00007 
00008 // main() runs in its own thread in the OS
00009 int main()
00010 {
00011     while (1) {
00012         setcolor(WS2812_RED);
00013         wait(0.5);
00014         setcolor(WS2812_BLACK);
00015         wait(0.5);
00016     }
00017 
00018 }