1
0
Fork 0

Initial arm->chibios pass - simplify some platform logic (#8450)

This commit is contained in:
Joel Challis 2020-03-21 05:20:04 +00:00 committed by GitHub
parent 7e80686f1e
commit d96380e654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 15 additions and 29 deletions

16
drivers/chibios/ws2812.h Normal file
View file

@ -0,0 +1,16 @@
#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);