Advertisement
Guest User

Untitled

a guest
Feb 5th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <FastLED.h>
  2.  
  3. // How many leds in your strip?
  4. #define NUM_LEDS 1
  5. #define DATA_PIN 3
  6. #ifndef BUILTIN_LED
  7. #define BUILTIN_LED 2
  8. #endif
  9.  
  10.  
  11. // Define the array of leds
  12. CRGB leds[NUM_LEDS];
  13.  
  14. void setup() {
  15. FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // GRB ordering is assumed
  16. FastLED.setMaxPowerInVoltsAndMilliamps(5, 500);
  17. FastLED.set_max_power_indicator_LED(BUILTIN_LED);
  18. }
  19.  
  20. void loop() {
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement