100-Days-Of-Code/Arduino/libraries/Easy_NeoPixels/examples/blink/blink.ino
Arcron ArchLinux 05d271bcaa 100Days
2024-10-26 14:58:28 +05:30

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);
}