]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] KBD19x Bootmagic Enable (lite) and other fixes (#5126)
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Thu, 14 Feb 2019 03:49:04 +0000 (19:49 -0800)
committerDrashna Jaelre <drashna@live.com>
Thu, 14 Feb 2019 03:49:04 +0000 (19:49 -0800)
* set bootmagic from no to lite and put in a note in the readme

* use pragma once

* discovered a compile error when testing with default keymap. The inlined led functions need to be externed in the .c file

* might as well turn on mouse keys as well

keyboards/kbdfans/kbd19x/kbd19x.c
keyboards/kbdfans/kbd19x/kbd19x.h
keyboards/kbdfans/kbd19x/readme.md
keyboards/kbdfans/kbd19x/rules.mk

index 360345600d02d4c80433e9cb7149983336a9d264..e6cd77d656bf4b47b71c78a40bf287ca0f593e78 100644 (file)
@@ -17,6 +17,15 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "kbd19x.h"
 
+extern inline void kbd19x_caps_led_on(void);
+extern inline void kbd19x_caps_led_off(void);
+
+extern inline void kbd19x_sclk_led_on(void);
+extern inline void kbd19x_sclk_led_off(void);
+
+extern inline void kbd19x_nmlk_led_on(void);
+extern inline void kbd19x_nmlk_led_off(void);
+
 void matrix_init_kb(void) {
        // put your keyboard start-up code here
        // runs once when the firmware starts up
index 728c7ca5ca8b104f10af3e28ca2d4a805dfa612e..73f3cbe16c849b7df5075022b540dfb157cccf08 100644 (file)
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef KBD19X_H
-#define KBD19X_H
+#pragma once
 
 #include "quantum.h"
 #include "led.h"
@@ -100,4 +99,3 @@ inline void kbd19x_nmlk_led_off(void)   { DDRB &= ~(1<<2); PORTB &= ~(1<<2); }
   {k05, k06, k07, k08, k15, k16, k17, k18, k25, k26, k27, k28, k36},\
   {XXX, k1e, k0e, k2e, k4e, k37, k38, k39, k45, k46, k47, k48, XXX},\
 }
-#endif
index 80b84b5f75f529cf57748f5a95453c68f07ce0e2..50adfb77f0a18ed522357c1dc0834ed9ace8a2c3 100644 (file)
@@ -8,6 +8,8 @@
 
 The KBD19x is a compact-1800 keyboard kit produced by KBDfans, offering a number of layout options.
 
+**Reset Sequence:** Using this firmware sets `BOOTLOADER_ENABLE` to `lite`. While plugging in, hold the top left key, commonly programmed as `Esc` to put your board into bootloader mode. 
+
 Keyboard Maintainer: [jshuf](https://github.com/jshuf)  
 Hardware Supported: KBD19x PCB  
 Hardware Availability: [KBDfans](https://kbdfans.cn)
index 8e50962afafb40d10add5e935e9b9d29e96e0dad..b7a08f241c86d7fdd95ce28e3434f933723dd87b 100644 (file)
@@ -61,8 +61,8 @@ BOOTLOADER = atmel-dfu
 # Build Options
 #   change yes to no to disable
 #
-BOOTMAGIC_ENABLE = no      # Virtual DIP switch configuration(+1000)
-MOUSEKEY_ENABLE = no       # Mouse keys(+4700)
+BOOTMAGIC_ENABLE = lite      # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = yes       # Mouse keys(+4700)
 EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
 CONSOLE_ENABLE = no        # Console for debug(+400)
 COMMAND_ENABLE = no        # Commands for debug and configuration