3/19/2019
Wio Tracker - GPS, BT3.0, GSM, Arduino Compatible - Seeed Wiki
http://wiki.seeedstudio.com/wio_gps_board/
11/20
Blink
Different from other boards, there is an User LED SK6812 on Wio Tracker, which is
an intelligent control LED light source and similar to ws2812b. Now we are going to
upload our rst demo - Blink to Wio Tracker, which will introduce how to use the
User LED.
[https://github.com/adafruit/Adafruit_NeoPixel/archive/master.zip]
LED) and import it into Arduino IDE.
Then open your Arduino IDE and click on File > Examples > MC20_GPS_Traker >
Blink to open the sketch or copy the blow code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include
"MC20_Arduino_Interface.h"
#include
<Adafruit_NeoPixel.h>
#define RGBPOWER 6
//To use User LED, D6 should be HIG
#define RGBPIN 10
#define LED_NUM 1
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(LED_NUM, RGBPIN, NEO_G
void
setup
() {
pinMode(RGBPOWER, OUTPUT);
digitalWrite(RGBPOWER, HIGH);
pixels.begin();
// This initializes the NeoPixel library.
}
void
loop
() {
// For a set of NeoPixels the first NeoPixel is 0, second is 1, a
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels.setPixelColor(
0
, pixels.Color(
0
,
0
,
100
));
// Moderately bri
pixels.show();
// This sends the updated pixel color to the hardw
delay(
1000
);
// Wait for 1 second
pixels.setPixelColor(
0
, pixels.Color(
0
,
0
,
0
));
// Turn off the l
pixels.show();
delay(
1000
);
}