diff options
Diffstat (limited to 'keyboards/cannonkeys/bluepill')
-rw-r--r-- | keyboards/cannonkeys/bluepill/keyboard.c | 13 | ||||
-rw-r--r-- | keyboards/cannonkeys/bluepill/ws2812.h | 20 |
2 files changed, 0 insertions, 33 deletions
diff --git a/keyboards/cannonkeys/bluepill/keyboard.c b/keyboards/cannonkeys/bluepill/keyboard.c index de0015881..c2e5946d4 100644 --- a/keyboards/cannonkeys/bluepill/keyboard.c +++ b/keyboards/cannonkeys/bluepill/keyboard.c @@ -14,20 +14,7 @@ #endif void matrix_init_kb(void){ - /* MOSI pin*/ - palSetPadMode(GPIOB, 15, PAL_MODE_STM32_ALTERNATE_PUSHPULL); LED_ON(); wait_ms(500); LED_OFF(); - -#ifdef RGBLIGHT_ENABLE - leds_init(); -#endif -} - -void matrix_scan_kb(void) -{ - #ifdef RGBLIGHT_ENABLE - rgblight_task(); - #endif } diff --git a/keyboards/cannonkeys/bluepill/ws2812.h b/keyboards/cannonkeys/bluepill/ws2812.h deleted file mode 100644 index be37df766..000000000 --- a/keyboards/cannonkeys/bluepill/ws2812.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include "hal.h" -#include "color.h" - - -void set_leds_color_rgb(LED_TYPE color); -void set_led_color_rgb(LED_TYPE color, int pos); -void leds_init(void); - - - // This is what users will use to interface with this -void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds); -void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds); - - -void WS2812_init(void); -void WS2812_set_color( uint8_t index, uint8_t red, uint8_t green, uint8_t blue ); -void WS2812_set_color_all( uint8_t red, uint8_t green, uint8_t blue ); -void WS2812_send_colors(void); |