summaryrefslogtreecommitdiffstats
path: root/keyboards/cannonkeys/bluepill
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-04-06 21:31:34 +0100
committerGitHub <noreply@github.com>2020-04-06 21:31:34 +0100
commit6c8e205fc0e5bc6372f057a257937ec3f88d5b8d (patch)
treea720a8700f3d8dbb474b8bd7ba9602b3861fbba2 /keyboards/cannonkeys/bluepill
parent79010067539ad2043bd41e9701aa1cde21aec5d1 (diff)
Remove keyboard level ws2812 spi drivers (#7694)
Diffstat (limited to 'keyboards/cannonkeys/bluepill')
-rw-r--r--keyboards/cannonkeys/bluepill/keyboard.c13
-rw-r--r--keyboards/cannonkeys/bluepill/ws2812.h20
2 files changed, 0 insertions, 33 deletions
diff --git a/keyboards/cannonkeys/bluepill/keyboard.c b/keyboards/cannonkeys/bluepill/keyboard.c
index de00158813..c2e5946d45 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 be37df7668..0000000000
--- 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);