Browsing Tag

RGB LED Shield

Various Wemos RGB LED Shield examples

Here are a few code examples for the Wemos RGB LED Shield, the shield consists of 7 RGB LEDs (WS2812B-mini) each wtih 24-bit RGB color 9 optional control pins (Default: D4/GPIO2) It fits on a Wemos mini and is easy to create examples, you simply need to add the adafruit neopixel library in the library manager in the Arduino IDE Example 1 This is the default example #include <Adafruit_NeoPixel.h> #define PIN D4 #define LED_NUM 7 Adafruit_NeoPixel leds = Adafruit_NeoPixel(LED_NUM, PIN, NEO_GRB + NEO_KHZ800); void…