diff --git a/keyboards/hid_rgbled/ichi_pp/config.h b/keyboards/hid_rgbled/ichi_pp/config.h new file mode 100644 index 0000000000..7b062ab302 --- /dev/null +++ b/keyboards/hid_rgbled/ichi_pp/config.h @@ -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 diff --git a/keyboards/hid_rgbled/ichi_pp/halconf.h b/keyboards/hid_rgbled/ichi_pp/halconf.h new file mode 100644 index 0000000000..2ebedac92a --- /dev/null +++ b/keyboards/hid_rgbled/ichi_pp/halconf.h @@ -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 diff --git a/keyboards/hid_rgbled/ichi_pp/ichi_pp.c b/keyboards/hid_rgbled/ichi_pp/ichi_pp.c new file mode 100644 index 0000000000..e4ccdb07c6 --- /dev/null +++ b/keyboards/hid_rgbled/ichi_pp/ichi_pp.c @@ -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(); +} diff --git a/keyboards/hid_rgbled/ichi_pp/info.json b/keyboards/hid_rgbled/ichi_pp/info.json new file mode 100644 index 0000000000..6dd931c0d0 --- /dev/null +++ b/keyboards/hid_rgbled/ichi_pp/info.json @@ -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 + } +} diff --git a/keyboards/hid_rgbled/ichi_pp/mcuconf.h b/keyboards/hid_rgbled/ichi_pp/mcuconf.h new file mode 100644 index 0000000000..a2d6cbbed9 --- /dev/null +++ b/keyboards/hid_rgbled/ichi_pp/mcuconf.h @@ -0,0 +1,21 @@ +// Copyright 2024 hsgw (Takuya Urakawa, Dm9Records, 5z6p.com) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once +#include_next + +// #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 diff --git a/keyboards/hid_rgbled/ichi_pp/rules.mk b/keyboards/hid_rgbled/ichi_pp/rules.mk new file mode 100644 index 0000000000..6e7633bfe0 --- /dev/null +++ b/keyboards/hid_rgbled/ichi_pp/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank diff --git a/keyboards/hid_rgbled/info.json b/keyboards/hid_rgbled/info.json index 2dddae3811..73b57a1265 100644 --- a/keyboards/hid_rgbled/info.json +++ b/keyboards/hid_rgbled/info.json @@ -21,7 +21,6 @@ "rgblight": { "saturation_steps": 8, "brightness_steps": 8, - "led_count": 1, "sleep": true, "animations": { "breathing": false, diff --git a/keyboards/hid_rgbled/rp2040_zero/info.json b/keyboards/hid_rgbled/rp2040_zero/info.json index 5533b1fc51..d04bf3856c 100644 --- a/keyboards/hid_rgbled/rp2040_zero/info.json +++ b/keyboards/hid_rgbled/rp2040_zero/info.json @@ -15,6 +15,7 @@ "driver": "vendor" }, "rgblight": { + "led_count": 1, "max_brightness": 255 } } diff --git a/keyboards/hid_rgbled/xiao_rp2040/info.json b/keyboards/hid_rgbled/xiao_rp2040/info.json index 78a969432a..42a0c49e77 100644 --- a/keyboards/hid_rgbled/xiao_rp2040/info.json +++ b/keyboards/hid_rgbled/xiao_rp2040/info.json @@ -15,6 +15,7 @@ "driver": "vendor" }, "rgblight": { + "led_count": 1, "max_brightness": 200 } }