add ichi_pp
This commit is contained in:
22
keyboards/hid_rgbled/ichi_pp/config.h
Normal file
22
keyboards/hid_rgbled/ichi_pp/config.h
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// Copyright 2024 hsgw (Takuya Urakawa, Dm9Records, 5z6p.com)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
|
||||||
|
|
||||||
|
#define NO_USB_STARTUP_CHECK
|
||||||
|
|
||||||
|
// SPI
|
||||||
|
#define WS2812_SPI_DRIVER SPID1
|
||||||
|
#define WS2812_SPI_MOSI_PAL_MODE 0
|
||||||
|
#define WS2812_SPI_SCK_PAL_MODE 0
|
||||||
|
#define WS2812_SPI_SCK_PIN A5
|
||||||
|
// #define WS2812_EXTERNAL_PULLUP
|
||||||
|
|
||||||
|
#define RGBLIGHT_DEFAULT_ON true
|
||||||
|
|
||||||
|
#define LAYER_STATE_8BIT
|
||||||
|
#define NO_ACTION_LAYER
|
||||||
|
#define NO_ACTION_TAPPING
|
||||||
|
#define NO_ACTION_ONESHOT
|
||||||
9
keyboards/hid_rgbled/ichi_pp/halconf.h
Normal file
9
keyboards/hid_rgbled/ichi_pp/halconf.h
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2024 hsgw (Takuya Urakawa, Dm9Records, 5z6p.com)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// #define HAL_USE_I2C TRUE
|
||||||
|
#define HAL_USE_SPI TRUE
|
||||||
|
|
||||||
|
#include_next <halconf.h>
|
||||||
10
keyboards/hid_rgbled/ichi_pp/ichi_pp.c
Normal file
10
keyboards/hid_rgbled/ichi_pp/ichi_pp.c
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
// Copyright 2024 hsgw (Takuya Urakawa, Dm9Records, 5z6p.com)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
void keyboard_pre_init_kb() {
|
||||||
|
// Enable USB pins
|
||||||
|
SYSCFG->CFGR1 |= SYSCFG_CFGR1_PA11_PA12_RMP;
|
||||||
|
keyboard_pre_init_user();
|
||||||
|
}
|
||||||
21
keyboards/hid_rgbled/ichi_pp/info.json
Normal file
21
keyboards/hid_rgbled/ichi_pp/info.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"bootloader": "stm32-dfu",
|
||||||
|
"processor": "STM32F042",
|
||||||
|
"url": "",
|
||||||
|
"usb": {
|
||||||
|
"device_version": "1.0.0",
|
||||||
|
"pid": "0x0000",
|
||||||
|
"vid": "0xFEED"
|
||||||
|
},
|
||||||
|
"matrix_pins":{
|
||||||
|
"direct": [["A4"]]
|
||||||
|
},
|
||||||
|
"ws2812": {
|
||||||
|
"pin": "A7",
|
||||||
|
"driver": "spi"
|
||||||
|
},
|
||||||
|
"rgblight": {
|
||||||
|
"led_count": 10,
|
||||||
|
"max_brightness": 255
|
||||||
|
}
|
||||||
|
}
|
||||||
21
keyboards/hid_rgbled/ichi_pp/mcuconf.h
Normal file
21
keyboards/hid_rgbled/ichi_pp/mcuconf.h
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// Copyright 2024 hsgw (Takuya Urakawa, Dm9Records, 5z6p.com)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
|
// #undef STM32_I2C_USE_I2C1
|
||||||
|
// #define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
|
// #undef STM32_I2C_I2C1_RX_DMA_STREAM
|
||||||
|
// #define STM32_I2C_I2C1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
|
||||||
|
// #undef STM32_I2C_I2C1_TX_DMA_STREAM
|
||||||
|
// #define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2)
|
||||||
|
|
||||||
|
#undef STM32_SPI_SPI1_RX_DMA_STREAM
|
||||||
|
#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2)
|
||||||
|
#undef STM32_SPI_SPI1_TX_DMA_STREAM
|
||||||
|
#define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
|
||||||
|
|
||||||
|
#undef STM32_SPI_USE_SPI1
|
||||||
|
#define STM32_SPI_USE_SPI1 TRUE
|
||||||
1
keyboards/hid_rgbled/ichi_pp/rules.mk
Normal file
1
keyboards/hid_rgbled/ichi_pp/rules.mk
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# This file intentionally left blank
|
||||||
@@ -21,7 +21,6 @@
|
|||||||
"rgblight": {
|
"rgblight": {
|
||||||
"saturation_steps": 8,
|
"saturation_steps": 8,
|
||||||
"brightness_steps": 8,
|
"brightness_steps": 8,
|
||||||
"led_count": 1,
|
|
||||||
"sleep": true,
|
"sleep": true,
|
||||||
"animations": {
|
"animations": {
|
||||||
"breathing": false,
|
"breathing": false,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"driver": "vendor"
|
"driver": "vendor"
|
||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
|
"led_count": 1,
|
||||||
"max_brightness": 255
|
"max_brightness": 255
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"driver": "vendor"
|
"driver": "vendor"
|
||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
|
"led_count": 1,
|
||||||
"max_brightness": 200
|
"max_brightness": 200
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user