diff options
author | Joel Challis <git@zvecr.com> | 2020-04-06 21:10:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 21:10:30 +0100 |
commit | 79010067539ad2043bd41e9701aa1cde21aec5d1 (patch) | |
tree | bfbabc4845bca90edc94c6ca61e80e1f4af72c27 /keyboards/cannonkeys/practice65 | |
parent | 9bfa713421ccd62fe49493b282d02310accf0523 (diff) | |
download | qmk_firmware-79010067539ad2043bd41e9701aa1cde21aec5d1.tar.gz qmk_firmware-79010067539ad2043bd41e9701aa1cde21aec5d1.zip |
Refactor cannonkeys f103 boards to use core backlight (#8089)
* Refactor to use core backlight
* Remove custom implementation
Diffstat (limited to 'keyboards/cannonkeys/practice65')
-rw-r--r-- | keyboards/cannonkeys/practice65/config.h | 3 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/rules.mk | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/keyboards/cannonkeys/practice65/config.h b/keyboards/cannonkeys/practice65/config.h index 7ebac8d8e1..346af8ff33 100644 --- a/keyboards/cannonkeys/practice65/config.h +++ b/keyboards/cannonkeys/practice65/config.h @@ -33,6 +33,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define MATRIX_ROW_PINS { B4, B11, B1, B7, B6 } #define DIODE_DIRECTION COL2ROW +#define BACKLIGHT_PIN A8 +#define BACKLIGHT_PWM_DRIVER PWMD1 +#define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_LEVELS 6 #define BACKLIGHT_BREATHING #define BREATHING_PERIOD 6 diff --git a/keyboards/cannonkeys/practice65/rules.mk b/keyboards/cannonkeys/practice65/rules.mk index d4a396120a..90a339bb39 100644 --- a/keyboards/cannonkeys/practice65/rules.mk +++ b/keyboards/cannonkeys/practice65/rules.mk @@ -11,8 +11,7 @@ DFU_SUFFIX_ARGS = -v 1eaf -p 0003 # project specific files VPATH += keyboards/cannonkeys/bluepill -SRC = led.c \ - keyboard.c +SRC = keyboard.c #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration MOUSEKEY_ENABLE = yes # Mouse keys @@ -20,9 +19,8 @@ EXTRAKEY_ENABLE = yes # Audio control and System control CONSOLE_ENABLE = yes # Console for debug COMMAND_ENABLE = yes # Commands for debug and configuration SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend -NKRO_ENABLE = yes # USB Nkey Rollover +NKRO_ENABLE = yes # USB Nkey Rollover BACKLIGHT_ENABLE = yes -BACKLIGHT_DRIVER = custom RGBLIGHT_ENABLE = yes |