Add L432, L442. (#16016)
This commit is contained in:
21
keyboards/handwired/onekey/nucleo_l432kc/config.h
Normal file
21
keyboards/handwired/onekey/nucleo_l432kc/config.h
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2021 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
#define PRODUCT Onekey L432KC
|
||||
|
||||
#define MATRIX_COL_PINS { A2 }
|
||||
#define MATRIX_ROW_PINS { A1 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
#define BACKLIGHT_PIN B8
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD4
|
||||
#define BACKLIGHT_PWM_CHANNEL 3
|
||||
#define BACKLIGHT_PAL_MODE 2
|
||||
|
||||
#define RGB_DI_PIN A0
|
||||
#define RGB_CI_PIN B13
|
||||
|
||||
#define ADC_PIN A0
|
5
keyboards/handwired/onekey/nucleo_l432kc/readme.md
Normal file
5
keyboards/handwired/onekey/nucleo_l432kc/readme.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# STM32 Nucleo-L432 onekey
|
||||
|
||||
To trigger keypress, short together pins *A1* and *A2*.
|
||||
|
||||
You'll also need to connect `VIN`, `GND`, USB `D+` to `PA12`/`D2`, and USB `D-` to `PA11`/`D10`.
|
5
keyboards/handwired/onekey/nucleo_l432kc/rules.mk
Normal file
5
keyboards/handwired/onekey/nucleo_l432kc/rules.mk
Normal file
@@ -0,0 +1,5 @@
|
||||
# MCU name
|
||||
MCU = STM32L432
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = stm32-dfu
|
Reference in New Issue
Block a user