add ichi_pp

This commit is contained in:
hsgw
2024-02-18 03:25:28 +09:00
parent 381b60a084
commit 7b22a4dbf1
9 changed files with 86 additions and 1 deletions

View 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

View 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>

View 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();
}

View 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
}
}

View 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

View File

@@ -0,0 +1 @@
# This file intentionally left blank

View File

@@ -21,7 +21,6 @@
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 1,
"sleep": true,
"animations": {
"breathing": false,

View File

@@ -15,6 +15,7 @@
"driver": "vendor"
},
"rgblight": {
"led_count": 1,
"max_brightness": 255
}
}

View File

@@ -15,6 +15,7 @@
"driver": "vendor"
},
"rgblight": {
"led_count": 1,
"max_brightness": 200
}
}