22 lines
352 B
C++
22 lines
352 B
C++
/*
|
|
|
|
Blink bright white light from a single Neopixel!
|
|
|
|
*/
|
|
|
|
#include <EasyNeoPixels.h>
|
|
|
|
void setup() {
|
|
// setup for one NeoPixel attached to pin 13
|
|
setupEasyNeoPixels(13, 1);
|
|
}
|
|
|
|
void loop() {
|
|
// turn the NeoPixel ON
|
|
writeEasyNeoPixel(0, HIGH);
|
|
delay(500);
|
|
// turn the NeoPixel OFF
|
|
writeEasyNeoPixel(0, LOW);
|
|
delay(500);
|
|
}
|