Skip to content

Commit

Permalink
simplify the r65 code
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaxin96 committed Jun 14, 2021
1 parent 8e30997 commit 5699d3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
4 changes: 2 additions & 2 deletions keyboards/yandrstudio/rainbow65/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
# define RGB_DI_PIN B15
# define RGBLED_NUM 68
# define DRIVER_LED_TOTAL RGBLED_NUM
#define WS2812_SPI SPID2 // default: SPID1
#define WS2812_SPI_MOSI_PAL_MODE 5
# define WS2812_SPI SPID2 // default: SPID1
# define WS2812_SPI_MOSI_PAL_MODE 5

# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180
# define RGBLIGHT_VAL_STEP 18
Expand Down
5 changes: 1 addition & 4 deletions keyboards/yandrstudio/rainbow65/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@

#include_next <halconf.h>

#undef HAL_USE_SERIAL
#define HAL_USE_SERIAL TRUE

#undef HAL_USE_I2C
#define HAL_USE_I2C TRUE

#undef HAL_USE_SPI
#define HAL_USE_SPI TRUE
#define HAL_USE_SPI TRUE
12 changes: 0 additions & 12 deletions keyboards/yandrstudio/rainbow65/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,11 @@

#include_next <mcuconf.h>

#undef STM32_SPI_USE_SPI1
#define STM32_SPI_USE_SPI1 FALSE

#undef STM32_SPI_USE_SPI2
#define STM32_SPI_USE_SPI2 TRUE

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_I2C_USE_I2C2
#define STM32_I2C_USE_I2C2 FALSE

/*
* UART driver system settings.
*/


#undef STM32_SERIAL_USE_USART1
#define STM32_SERIAL_USE_USART1 TRUE

0 comments on commit 5699d3d

Please sign in to comment.