mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	Remove keyboard level ws2812 spi drivers (#7694)
This commit is contained in:
		
							parent
							
								
									7901006753
								
							
						
					
					
						commit
						6c8e205fc0
					
				@ -49,11 +49,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 14
 | 
					#define RGBLED_NUM 14
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Backlight config starts after VIA's EEPROM usage,
 | 
					// Backlight config starts after VIA's EEPROM usage,
 | 
				
			||||||
 | 
				
			|||||||
@ -21,6 +21,7 @@ NKRO_ENABLE = yes	    # USB Nkey Rollover
 | 
				
			|||||||
CUSTOM_MATRIX = no # Custom matrix file
 | 
					CUSTOM_MATRIX = no # Custom matrix file
 | 
				
			||||||
# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
					# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LAYOUTS = 60_ansi 60_tsangan_hhkb
 | 
					LAYOUTS = 60_ansi 60_tsangan_hhkb
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -14,20 +14,7 @@
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void matrix_init_kb(void){
 | 
					void matrix_init_kb(void){
 | 
				
			||||||
      /* MOSI pin*/
 | 
					 | 
				
			||||||
    palSetPadMode(GPIOB, 15, PAL_MODE_STM32_ALTERNATE_PUSHPULL);
 | 
					 | 
				
			||||||
    LED_ON();
 | 
					    LED_ON();
 | 
				
			||||||
    wait_ms(500);
 | 
					    wait_ms(500);
 | 
				
			||||||
    LED_OFF();
 | 
					    LED_OFF();
 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef RGBLIGHT_ENABLE
 | 
					 | 
				
			||||||
    leds_init();
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void matrix_scan_kb(void)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  #ifdef RGBLIGHT_ENABLE
 | 
					 | 
				
			||||||
    rgblight_task();
 | 
					 | 
				
			||||||
  #endif
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -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);
 | 
					 | 
				
			||||||
@ -49,11 +49,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 14
 | 
					#define RGBLED_NUM 14
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Backlight config starts after VIA's EEPROM usage,
 | 
					// Backlight config starts after VIA's EEPROM usage,
 | 
				
			||||||
 | 
				
			|||||||
@ -21,6 +21,7 @@ NKRO_ENABLE = yes	    # USB Nkey Rollover
 | 
				
			|||||||
CUSTOM_MATRIX = no # Custom matrix file
 | 
					CUSTOM_MATRIX = no # Custom matrix file
 | 
				
			||||||
# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
					# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LAYOUTS = 60_ansi 60_tsangan_hhkb
 | 
					LAYOUTS = 60_ansi 60_tsangan_hhkb
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -52,14 +52,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 9
 | 
					#define RGBLED_NUM 9
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Feature disable options
 | 
					 * Feature disable options
 | 
				
			||||||
 *  These options are also useful to firmware size reduction.
 | 
					 *  These options are also useful to firmware size reduction.
 | 
				
			||||||
 | 
				
			|||||||
@ -22,6 +22,7 @@ SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
 | 
				
			|||||||
NKRO_ENABLE = yes	    # USB Nkey Rollover
 | 
					NKRO_ENABLE = yes	    # USB Nkey Rollover
 | 
				
			||||||
BACKLIGHT_ENABLE = yes
 | 
					BACKLIGHT_ENABLE = yes
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LAYOUTS = ortho_4x12
 | 
					LAYOUTS = ortho_4x12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -52,14 +52,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 16
 | 
					#define RGBLED_NUM 16
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Feature disable options
 | 
					 * Feature disable options
 | 
				
			||||||
 *  These options are also useful to firmware size reduction.
 | 
					 *  These options are also useful to firmware size reduction.
 | 
				
			||||||
 | 
				
			|||||||
@ -22,6 +22,7 @@ SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
 | 
				
			|||||||
NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
					NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
				
			||||||
BACKLIGHT_ENABLE = yes
 | 
					BACKLIGHT_ENABLE = yes
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LAYOUTS = ortho_5x12
 | 
					LAYOUTS = ortho_5x12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -55,14 +55,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 16
 | 
					#define RGBLED_NUM 16
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Feature disable options
 | 
					 * Feature disable options
 | 
				
			||||||
 *  These options are also useful to firmware size reduction.
 | 
					 *  These options are also useful to firmware size reduction.
 | 
				
			||||||
 | 
				
			|||||||
@ -22,6 +22,7 @@ SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
 | 
				
			|||||||
NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
					NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
				
			||||||
BACKLIGHT_ENABLE = yes
 | 
					BACKLIGHT_ENABLE = yes
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
ENCODER_ENABLE = yes
 | 
					ENCODER_ENABLE = yes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LAYOUTS = ortho_5x15
 | 
					LAYOUTS = ortho_5x15
 | 
				
			||||||
 | 
				
			|||||||
@ -52,14 +52,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 9
 | 
					#define RGBLED_NUM 9
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Feature disable options
 | 
					 * Feature disable options
 | 
				
			||||||
 *  These options are also useful to firmware size reduction.
 | 
					 *  These options are also useful to firmware size reduction.
 | 
				
			||||||
 | 
				
			|||||||
@ -22,6 +22,7 @@ SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
 | 
				
			|||||||
NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
					NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
				
			||||||
BACKLIGHT_ENABLE = yes
 | 
					BACKLIGHT_ENABLE = yes
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LAYOUTS = 60_ansi
 | 
					LAYOUTS = 60_ansi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -52,14 +52,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 20
 | 
					#define RGBLED_NUM 20
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Feature disable options
 | 
					 * Feature disable options
 | 
				
			||||||
 *  These options are also useful to firmware size reduction.
 | 
					 *  These options are also useful to firmware size reduction.
 | 
				
			||||||
 | 
				
			|||||||
@ -22,7 +22,7 @@ SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
 | 
				
			|||||||
NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
					NKRO_ENABLE = yes	      # USB Nkey Rollover
 | 
				
			||||||
BACKLIGHT_ENABLE = yes
 | 
					BACKLIGHT_ENABLE = yes
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
 | 
					# Enter lower-power sleep mode when on the ChibiOS idle thread
 | 
				
			||||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
 | 
					OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
 | 
				
			||||||
 | 
				
			|||||||
@ -49,11 +49,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 20
 | 
					#define RGBLED_NUM 20
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Backlight config starts after VIA's EEPROM usage,
 | 
					// Backlight config starts after VIA's EEPROM usage,
 | 
				
			||||||
 | 
				
			|||||||
@ -21,7 +21,7 @@ NKRO_ENABLE = yes	    # USB Nkey Rollover
 | 
				
			|||||||
CUSTOM_MATRIX = no # Custom matrix file
 | 
					CUSTOM_MATRIX = no # Custom matrix file
 | 
				
			||||||
# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
					# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
 | 
					# Enter lower-power sleep mode when on the ChibiOS idle thread
 | 
				
			||||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
 | 
					OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
 | 
				
			||||||
 | 
				
			|||||||
@ -5,8 +5,6 @@
 | 
				
			|||||||
#include "util.h"
 | 
					#include "util.h"
 | 
				
			||||||
#include "quantum.h"
 | 
					#include "quantum.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "ws2812.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "raw_hid.h"
 | 
					#include "raw_hid.h"
 | 
				
			||||||
#include "dynamic_keymap.h"
 | 
					#include "dynamic_keymap.h"
 | 
				
			||||||
#include "tmk_core/common/eeprom.h"
 | 
					#include "tmk_core/common/eeprom.h"
 | 
				
			||||||
@ -58,25 +56,11 @@ void matrix_init_kb(void){
 | 
				
			|||||||
	via_init_kb();
 | 
						via_init_kb();
 | 
				
			||||||
	via_eeprom_set_valid(true);
 | 
						via_eeprom_set_valid(true);
 | 
				
			||||||
#endif // VIA_ENABLE
 | 
					#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();
 | 
					    backlight_init_ports();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    matrix_init_board();
 | 
					    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) {
 | 
					bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
 | 
				
			||||||
  switch (keycode) {
 | 
					  switch (keycode) {
 | 
				
			||||||
    case BL_INC:
 | 
					    case BL_INC:
 | 
				
			||||||
 | 
				
			|||||||
@ -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);
 | 
					 | 
				
			||||||
@ -49,12 +49,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 22
 | 
					#define RGBLED_NUM 22
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					#define WS2812_SPI_MOSI_PAL_MODE 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Backlight config starts after VIA's EEPROM usage,
 | 
					// Backlight config starts after VIA's EEPROM usage,
 | 
				
			||||||
// dynamic keymaps start after this.
 | 
					// dynamic keymaps start after this.
 | 
				
			||||||
 | 
				
			|||||||
@ -21,7 +21,7 @@ NKRO_ENABLE = yes	    # USB Nkey Rollover
 | 
				
			|||||||
CUSTOM_MATRIX = no # Custom matrix file
 | 
					CUSTOM_MATRIX = no # Custom matrix file
 | 
				
			||||||
# BACKLIGHT_ENABLE = yes # This is broken on 072 right now
 | 
					# BACKLIGHT_ENABLE = yes # This is broken on 072 right now
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
 | 
					# Enter lower-power sleep mode when on the ChibiOS idle thread
 | 
				
			||||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
 | 
					OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
 | 
				
			||||||
 | 
				
			|||||||
@ -49,11 +49,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
#define LOCKING_RESYNC_ENABLE
 | 
					#define LOCKING_RESYNC_ENABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define RGBLIGHT_ANIMATIONS
 | 
					#define RGBLIGHT_ANIMATIONS
 | 
				
			||||||
 | 
					#define RGB_DI_PIN B15
 | 
				
			||||||
#define WS2812_LED_N 14
 | 
					#define RGBLED_NUM 14
 | 
				
			||||||
#define RGBLED_NUM WS2812_LED_N
 | 
					 | 
				
			||||||
#define PORT_WS2812     GPIOB
 | 
					 | 
				
			||||||
#define PIN_WS2812      15
 | 
					 | 
				
			||||||
#define WS2812_SPI SPID2
 | 
					#define WS2812_SPI SPID2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Backlight config starts after VIA's EEPROM usage,
 | 
					// Backlight config starts after VIA's EEPROM usage,
 | 
				
			||||||
 | 
				
			|||||||
@ -21,6 +21,7 @@ NKRO_ENABLE = yes	    # USB Nkey Rollover
 | 
				
			|||||||
CUSTOM_MATRIX = no # Custom matrix file
 | 
					CUSTOM_MATRIX = no # Custom matrix file
 | 
				
			||||||
# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
					# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
 | 
				
			||||||
RGBLIGHT_ENABLE = yes
 | 
					RGBLIGHT_ENABLE = yes
 | 
				
			||||||
 | 
					WS2812_DRIVER = spi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RAW_ENABLE = yes
 | 
					# RAW_ENABLE = yes
 | 
				
			||||||
# DYNAMIC_KEYMAP_ENABLE = yes
 | 
					# DYNAMIC_KEYMAP_ENABLE = yes
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user