mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 21:22:05 +00:00
Add backlight to reverie
This commit is contained in:
parent
72aa2d5d4f
commit
a471af865a
@ -21,3 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
|
||||
|
||||
#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
|
||||
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD3
|
||||
#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_A
|
||||
|
8
keyboards/cannonkeys/reverie/halconf.h
Normal file
8
keyboards/cannonkeys/reverie/halconf.h
Normal file
@ -0,0 +1,8 @@
|
||||
// Copyright 2022 Andrew Kannan
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_PWM TRUE
|
||||
|
||||
#include_next <halconf.h>
|
@ -5,6 +5,7 @@
|
||||
"bootloader": "rp2040",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"backlight": true,
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
@ -12,6 +13,12 @@
|
||||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"backlight": {
|
||||
"breathing": true,
|
||||
"breathing_period": 5,
|
||||
"levels": 15,
|
||||
"pin": "GP22"
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "GP29",
|
||||
"on_state": 0
|
||||
|
9
keyboards/cannonkeys/reverie/mcuconf.h
Normal file
9
keyboards/cannonkeys/reverie/mcuconf.h
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright 2022 Andrew Kannan
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
#undef RP_PWM_USE_PWM3
|
||||
#define RP_PWM_USE_PWM3 TRUE
|
Loading…
Reference in New Issue
Block a user