led_ring.h 885 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef LED_RING_H
  2. #define LED_RING_H
  3. #include <FastLED.h>
  4. void led_setup();
  5. void led_setall(uint32_t color);
  6. void led_setall(uint8_t red, uint8_t green, uint8_t blue);
  7. /*
  8. #include <Arduino.h>
  9. #include <Adafruit_NeoPixel.h>
  10. #ifdef __AVR__
  11. #include <avr/power.h>
  12. #endif
  13. extern Adafruit_NeoPixel strip;
  14. #define LED_PIN 5
  15. void led_setup();
  16. void led_setall(uint32_t color);
  17. void led_setall(uint8_t red, uint8_t green, uint8_t blue);
  18. void led_examples();
  19. void colorWipe(uint32_t c, uint8_t wait); // Fill the dots one after the other with a color
  20. void rainbow(uint8_t wait);
  21. void rainbowCycle(uint8_t wait); // Slightly different, this makes the rainbow equally distributed throughout
  22. void theaterChase(uint32_t c, uint8_t wait); //Theatre-style crawling lights.
  23. void theaterChaseRainbow(uint8_t wait);
  24. uint32_t Wheel(byte WheelPos);
  25. */
  26. #endif