Skip to content

Instantly share code, notes, and snippets.

@tejpochiraju
Created July 16, 2021 12:42
Show Gist options
  • Save tejpochiraju/f8f3a85264f79fc695399fe77eb901a1 to your computer and use it in GitHub Desktop.
Save tejpochiraju/f8f3a85264f79fc695399fe77eb901a1 to your computer and use it in GitHub Desktop.
Testing NeoPixel Array Using the mDuino-21+ Controller
#include <FastLED.h>
// LED_PIN = 2 works but 36 (Q0.0) does not.
#define LED_PIN 36
#define NUM_LEDS 6
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
FastLED.clear();
FastLED.show();
delay(1000);
for(int i=0;i<NUM_LEDS;i++){
leds[i] = CRGB(0, 255, 0);
FastLED.show();
delay(1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment