Add backlight to reverie

This commit is contained in:
Andrew Kannan 2024-06-07 13:34:54 -04:00
parent 72aa2d5d4f
commit a471af865a
4 changed files with 27 additions and 0 deletions

View File

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

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

View File

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

View 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