mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 16:37:58 +06:00
60e4921378
* Fix unicode in comments Co-Authored-By: fauxpark <fauxpark@gmail.com> * Remove separate RGBW implementation for a unified function * Set White to 0 in RGBW LEDs This is just to get this working, later, proper brightness can be handled elsewhere. * Use us instead of nanoseconds(?) since it renders correctly on web * Remove RGBW function from arm/ws2812.h * Remove RGBW function from arm/ws2812.c * Formatting changes * Add doc info
17 lines
456 B
C
17 lines
456 B
C
#pragma once
|
|
|
|
#include "quantum/color.h"
|
|
|
|
/* User Interface
|
|
*
|
|
* Input:
|
|
* ledarray: An array of GRB data describing the LED colors
|
|
* number_of_leds: The number of LEDs to write
|
|
*
|
|
* The functions will perform the following actions:
|
|
* - Set the data-out pin as output
|
|
* - Send out the LED data
|
|
* - Wait 50us to reset the LEDs
|
|
*/
|
|
void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
|