diff options
Diffstat (limited to 'keyboards/cannonkeys/stm32f072')
-rw-r--r-- | keyboards/cannonkeys/stm32f072/keyboard.c | 16 | ||||
-rw-r--r-- | keyboards/cannonkeys/stm32f072/ws2812.h | 19 |
2 files changed, 0 insertions, 35 deletions
diff --git a/keyboards/cannonkeys/stm32f072/keyboard.c b/keyboards/cannonkeys/stm32f072/keyboard.c index fdda018fc4..39f912506d 100644 --- a/keyboards/cannonkeys/stm32f072/keyboard.c +++ b/keyboards/cannonkeys/stm32f072/keyboard.c @@ -5,8 +5,6 @@ #include "util.h" #include "quantum.h" -#include "ws2812.h" - #include "raw_hid.h" #include "dynamic_keymap.h" #include "tmk_core/common/eeprom.h" @@ -58,25 +56,11 @@ void matrix_init_kb(void){ via_init_kb(); via_eeprom_set_valid(true); #endif // VIA_ENABLE - /* MOSI pin*/ -#ifdef RGBLIGHT_ENABLE - palSetPadMode(PORT_WS2812, PIN_WS2812, PAL_MODE_ALTERNATE(0)); - wait_ms(500); - leds_init(); -#endif backlight_init_ports(); matrix_init_board(); } -void matrix_scan_kb(void) -{ - #ifdef RGBLIGHT_ENABLE - rgblight_task(); - #endif - matrix_scan_user(); -} - bool process_record_kb(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case BL_INC: diff --git a/keyboards/cannonkeys/stm32f072/ws2812.h b/keyboards/cannonkeys/stm32f072/ws2812.h deleted file mode 100644 index 9b545fcd53..0000000000 --- a/keyboards/cannonkeys/stm32f072/ws2812.h +++ /dev/null @@ -1,19 +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); |