allanGEE

FastLED Basic Setup Sketch 2016-11-18

Nov 18th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. // *************************************
  2. // *************************************
  3. // **** THIS IS A BASIC SETUP I USE ****
  4. // **** TO SAVE TIME WHEN TESTING ****
  5. // **** DIFFERENT SKETCHES ****
  6. // *************************************
  7. // *************************************
  8. //
  9. #include "FastLED.h"
  10. //
  11. #define DATA_PIN 8
  12. //
  13. //#define CLK_PIN 4
  14. //
  15. #define NUM_LEDS 100
  16. //
  17. CRGB leds[NUM_LEDS];
  18. // the above creates an LED array to hold
  19. // the values for each led in your strip
  20. // Whatever THAT means :)
  21. //
  22. // ****************
  23. // ****************
  24. // ** VOID SETUP **
  25. // ****************
  26. // ****************
  27. //
  28. void setup()
  29. // void setup gets everything ready for what will run in the void loop.
  30. {
  31. //
  32. delay(3000); // 3 second delay for recovery
  33. //
  34. FastLED.setBrightness(96);
  35. //
  36. FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
  37. //
  38. // FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
  39. // The above is another common type of strip
  40. // You would comment the WS2812B and uncomment the Neopixel to use it.
  41. //
  42. }
  43. //
  44. // ***************
  45. // ***************
  46. // ** VOID LOOP **
  47. // ***************
  48. // ***************
  49. //
  50. void loop()
  51. //
  52. {
  53. //
  54.  
  55.  
  56.  
  57.  
  58.  
  59. //
  60. }
  61. //
Advertisement
Add Comment
Please, Sign In to add comment