ws2812.h 529 B

1234567891011121314151617
  1. #pragma once
  2. #include "quantum/color.h"
  3. /* User Interface
  4. *
  5. * Input:
  6. * ledarray: An array of GRB data describing the LED colors
  7. * number_of_leds: The number of LEDs to write
  8. *
  9. * The functions will perform the following actions:
  10. * - Set the data-out pin as output
  11. * - Send out the LED data
  12. * - Wait 50�s to reset the LEDs
  13. */
  14. void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
  15. void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds);