Migrate rgblight.pin
and RGB_DI_PIN
to ws2812.pin
(#20303)
This commit is contained in:
parent
71c22a12db
commit
47966dc2a6
2600 changed files with 4027 additions and 1909 deletions
|
@ -105,12 +105,14 @@
|
|||
}
|
||||
},
|
||||
"rgblight": {
|
||||
"pin": "D3",
|
||||
"led_count": 54,
|
||||
"split": true,
|
||||
"split_count": [27, 27],
|
||||
"max_brightness": 128
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D3"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
|
|
|
@ -116,12 +116,14 @@
|
|||
}
|
||||
},
|
||||
"rgblight": {
|
||||
"pin": "D3",
|
||||
"led_count": 68,
|
||||
"split": true,
|
||||
"split_count": [34, 34],
|
||||
"max_brightness": 128
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D3"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
|
|
|
@ -108,12 +108,14 @@
|
|||
}
|
||||
},
|
||||
"rgblight": {
|
||||
"pin": "D3",
|
||||
"led_count": 46,
|
||||
"split": true,
|
||||
"split_count": [23, 23],
|
||||
"max_brightness": 128
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D3"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
|
|
|
@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
# define SERIAL_USART_TX_PIN D3
|
||||
# define SERIAL_USART_RX_PIN D2
|
||||
|
||||
# define RGB_DI_PIN PAL_LINE(GPIOA, 3)
|
||||
# define WS2812_DI_PIN PAL_LINE(GPIOA, 3)
|
||||
# define WS2812_PWM_DRIVER PWMD2 // default: PWMD2
|
||||
# define WS2812_PWM_CHANNEL 4 // default: 2
|
||||
# define WS2812_PWM_PAL_MODE 1 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2
|
||||
|
@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
# define WS2812_DMA_CHANNEL 2 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
|
||||
# define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM2_UP // DMAMUX configuration for TIMx_UP -- only required if your MCU has a DMAMUX peripheral, see the respective reference manual for the appropriate values for your MCU.
|
||||
#else
|
||||
# define RGB_DI_PIN D3
|
||||
# define WS2812_DI_PIN D3
|
||||
# define SOFT_SERIAL_PIN D2
|
||||
#endif
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
# define SERIAL_USART_TX_PIN D3
|
||||
# define SERIAL_USART_RX_PIN D2
|
||||
|
||||
# define RGB_DI_PIN PAL_LINE(GPIOA, 3)
|
||||
# define WS2812_DI_PIN PAL_LINE(GPIOA, 3)
|
||||
# define WS2812_PWM_DRIVER PWMD2 // default: PWMD2
|
||||
# define WS2812_PWM_CHANNEL 4 // default: 2
|
||||
# define WS2812_PWM_PAL_MODE 1 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2
|
||||
|
@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
# define WS2812_DMA_CHANNEL 2 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
|
||||
# define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM2_UP // DMAMUX configuration for TIMx_UP -- only required if your MCU has a DMAMUX peripheral, see the respective reference manual for the appropriate values for your MCU.
|
||||
#else
|
||||
# define RGB_DI_PIN D3
|
||||
# define WS2812_DI_PIN D3
|
||||
# define SOFT_SERIAL_PIN D2
|
||||
#endif
|
||||
|
||||
|
|
|
@ -174,12 +174,14 @@
|
|||
}
|
||||
},
|
||||
"rgblight": {
|
||||
"pin": "D3",
|
||||
"led_count": 62,
|
||||
"split": true,
|
||||
"split_count": [31, 31],
|
||||
"max_brightness": 128
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D3"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
|
|
|
@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define AUDIO_CLICKY
|
||||
#define NO_MUSIC_MODE
|
||||
|
||||
#define RGB_DI_PIN B5
|
||||
#define RGBLED_NUM 5
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
"pid": "0xF75B",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B5"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "B4", "pin_b": "D7", "resolution": 2}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue