ws2812.h 456 B

12345678910111213141516
  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 50us to reset the LEDs
  13. */
  14. void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);