Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- // How many leds in your strip?
- #define NUM_LEDS 1
- #define DATA_PIN 3
- #ifndef BUILTIN_LED
- #define BUILTIN_LED 2
- #endif
- // Define the array of leds
- CRGB leds[NUM_LEDS];
- void setup() {
- FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // GRB ordering is assumed
- FastLED.setMaxPowerInVoltsAndMilliamps(5, 500);
- FastLED.set_max_power_indicator_LED(BUILTIN_LED);
- }
- void loop() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement