From 3dc4ff8da4c4db5323858241206f6b0ce1ee0d9c Mon Sep 17 00:00:00 2001 From: yiancar Date: Tue, 23 Feb 2021 15:54:28 +0000 Subject: [PATCH 1/3] Update Pinout for new PCB rev --- keyboards/nk65/readme.md | 4 +++- keyboards/nk65/v1_4/config.h | 22 ++++++++++++++++++++++ keyboards/nk65/v1_4/rules.mk | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100755 keyboards/nk65/v1_4/config.h create mode 100755 keyboards/nk65/v1_4/rules.mk diff --git a/keyboards/nk65/readme.md b/keyboards/nk65/readme.md index 5e7453a27d65..3bd04210d1b5 100755 --- a/keyboards/nk65/readme.md +++ b/keyboards/nk65/readme.md @@ -11,13 +11,15 @@ Hardware Availability: https://novelkeys.xyz/ Due to the RGB implementation, the NK65 is currently not compatible with community layouts. +NOTE: For PCBs with revision v1.4 or later please use nk65/v1_4 in the make command. + ## Instructions ### Build Make example for this keyboard (after setting up your build environment): - make nk65:default_via + make nk65:via See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/nk65/v1_4/config.h b/keyboards/nk65/v1_4/config.h new file mode 100755 index 000000000000..88629e5c99eb --- /dev/null +++ b/keyboards/nk65/v1_4/config.h @@ -0,0 +1,22 @@ +/* +Copyright 2021 Yiancar + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#pragma once + +#undef MATRIX_COL_PINS +#define MATRIX_COL_PINS { A13, A10, A9, A14, A15, B8, B9, B1, B0, A7, A0, A1, A2, A3, A5 } +// To enable debugger set A13 A14 -> A5 A7 diff --git a/keyboards/nk65/v1_4/rules.mk b/keyboards/nk65/v1_4/rules.mk new file mode 100755 index 000000000000..f7db412a243f --- /dev/null +++ b/keyboards/nk65/v1_4/rules.mk @@ -0,0 +1,33 @@ +# MCU name +MCU = STM32F303 + +# Do not put the microcontroller into power saving mode +# when we get USB suspend event. We want it to keep updating +# backlight effects. +OPT_DEFS += -DNO_SUSPEND_POWER_DOWN + +# Build Options +# comment out to disable the options. +# +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +NKRO_ENABLE = yes # USB Nkey Rollover +AUDIO_ENABLE = no # Audio output on port C6 +NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in +#SERIAL_LINK_ENABLE = yes + +CIE1931_CURVE = yes + +LAYOUTS = 65_ansi + +# project specific files +SRC = keyboards/wilba_tech/wt_main.c \ + keyboards/wilba_tech/wt_rgb_backlight.c \ + drivers/issi/is31fl3733.c \ + quantum/color.c \ + drivers/chibios/i2c_master.c From 1e4eb5bdf0fe60feca0dcc8e79c122cde02f3fc5 Mon Sep 17 00:00:00 2001 From: yiancar Date: Tue, 23 Feb 2021 16:01:28 +0000 Subject: [PATCH 2/3] Create readme.md --- keyboards/nk65/v1_4/readme.md | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 keyboards/nk65/v1_4/readme.md diff --git a/keyboards/nk65/v1_4/readme.md b/keyboards/nk65/v1_4/readme.md new file mode 100755 index 000000000000..399919a8bea3 --- /dev/null +++ b/keyboards/nk65/v1_4/readme.md @@ -0,0 +1,39 @@ +NK65 V1.4 +========= + +![NK65](https://i.imgur.com/EXNbVpL.jpg) + +NOTE: Please use this directory only if you have revision 1.4 PCB or later. + +This is a standard fixed layout 65% PCB. It supports VIA and full per-key RGB. + +Keyboard Maintainer: [Yiancar](http://yiancar-designs.com/) and on [GitHub](https://github.com/yiancar) +Hardware Supported: A 65% keyboard with STM32F303CC +Hardware Availability: https://novelkeys.xyz/ + +Due to the RGB implementation, the NK65 is currently not compatible with community layouts. + +## Instructions + +### Build + +Make example for this keyboard (after setting up your build environment): + + make nk65/v1_4:via + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). + +### Reset + +- Unplug +- Hold Escape +- Plug In +- Unplug +- Release Escape + +### Flash + +- Unplug +- Hold Escape +- Plug In +- Flash using QMK Toolbox or dfu-util (`make nk65/v1_4::dfu-util`) From 140fa2cdc58495bdf1d7c928bc0506c24ef82c9a Mon Sep 17 00:00:00 2001 From: yiancar Date: Thu, 4 Mar 2021 21:06:09 +0000 Subject: [PATCH 3/3] Update keyboards/nk65/v1_4/rules.mk Co-authored-by: Joel Challis --- keyboards/nk65/v1_4/rules.mk | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/keyboards/nk65/v1_4/rules.mk b/keyboards/nk65/v1_4/rules.mk index f7db412a243f..8b137891791f 100755 --- a/keyboards/nk65/v1_4/rules.mk +++ b/keyboards/nk65/v1_4/rules.mk @@ -1,33 +1 @@ -# MCU name -MCU = STM32F303 -# Do not put the microcontroller into power saving mode -# when we get USB suspend event. We want it to keep updating -# backlight effects. -OPT_DEFS += -DNO_SUSPEND_POWER_DOWN - -# Build Options -# comment out to disable the options. -# -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend -NKRO_ENABLE = yes # USB Nkey Rollover -AUDIO_ENABLE = no # Audio output on port C6 -NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in -#SERIAL_LINK_ENABLE = yes - -CIE1931_CURVE = yes - -LAYOUTS = 65_ansi - -# project specific files -SRC = keyboards/wilba_tech/wt_main.c \ - keyboards/wilba_tech/wt_rgb_backlight.c \ - drivers/issi/is31fl3733.c \ - quantum/color.c \ - drivers/chibios/i2c_master.c