diff options
author | James Young <18669334+noroadsleft@users.noreply.github.com> | 2022-02-07 20:12:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 20:12:59 -0800 |
commit | e26778ceb572f3aa6cff7cc08479663899c32a92 (patch) | |
tree | 67f30ffa491eea48fdc049f2ec7b3b16d95d1c0e | |
parent | f3aa5db4147f9a5e80a81e76b74280aa1087a281 (diff) | |
download | qmk_firmware-e26778ceb572f3aa6cff7cc08479663899c32a92.tar.gz qmk_firmware-e26778ceb572f3aa6cff7cc08479663899c32a92.zip |
LFKeyboards Mini1800: refactor into revisions (#16260)
* fork Mini1800 into reva and revc versions
* update info.json
- apply friendly formatting
- update maintainer value
* update keymap rules.mk formatting
- align inline comments
- convert tabs to spaces
* align keymap rules.mk files to QMK template
* move common keymap rules.mk settings to revision level
* info.json: correct key sequence
* align revision rules.mk files to QMK template
* clean up revision rules.mk files
* add readme files for each revision
* correct USB Product string
* remove post_rules.mk files
The internal settings were commented out, so the files actually don't do anything.
* edit Bootloader instructions on main readme
* move non-assignment rules to post_rules.mk
* add inline comments for NKRO_ENABLE per fauxpark
-rw-r--r-- | keyboards/lfkeyboards/mini1800/config.h | 2 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/info.json | 91 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk | 44 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk | 40 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/post_rules.mk | 9 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/readme.md | 28 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/reva/post_rules.mk | 7 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/reva/readme.md | 22 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/reva/rules.mk | 29 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/revc/post_rules.mk | 7 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/revc/readme.md | 24 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/revc/rules.mk | 29 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/rules.mk | 19 |
13 files changed, 229 insertions, 122 deletions
diff --git a/keyboards/lfkeyboards/mini1800/config.h b/keyboards/lfkeyboards/mini1800/config.h index 1504a95cb..7c81c9f98 100644 --- a/keyboards/lfkeyboards/mini1800/config.h +++ b/keyboards/lfkeyboards/mini1800/config.h | |||
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
23 | #define PRODUCT_ID 0x6060 | 23 | #define PRODUCT_ID 0x6060 |
24 | #define DEVICE_VER 0x0001 | 24 | #define DEVICE_VER 0x0001 |
25 | #define MANUFACTURER LFKeyboards | 25 | #define MANUFACTURER LFKeyboards |
26 | #define PRODUCT LFK87 | 26 | #define PRODUCT Mini1800 |
27 | 27 | ||
28 | #define DIODE_DIRECTION COL2ROW | 28 | #define DIODE_DIRECTION COL2ROW |
29 | 29 | ||
diff --git a/keyboards/lfkeyboards/mini1800/info.json b/keyboards/lfkeyboards/mini1800/info.json index 5d2662b87..0625ee43d 100644 --- a/keyboards/lfkeyboards/mini1800/info.json +++ b/keyboards/lfkeyboards/mini1800/info.json | |||
@@ -1,10 +1,97 @@ | |||
1 | { | 1 | { |
2 | "keyboard_name": "Mini1800", | 2 | "keyboard_name": "Mini1800", |
3 | "url": "", | 3 | "url": "", |
4 | "maintainer": "qmk", | 4 | "maintainer": "lfkeyboards", |
5 | "layouts": { | 5 | "layouts": { |
6 | "LAYOUT": { | 6 | "LAYOUT": { |
7 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Back Space", "x":13, "y":0, "w":2}, {"label":"Num Lock", "x":15.5, "y":0}, {"label":"/", "x":16.5, "y":0}, {"label":"*", "x":17.5, "y":0}, {"label":"-", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.25}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"+", "x":18.5, "y":2}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3, "h":2}, {"label":"\u2191", "x":14.25, "y":3.25}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"Alt", "x":10, "y":4}, {"label":"Fn", "x":11, "y":4}, {"label":"Ctrl", "x":12, "y":4}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}, {"label":"\u2190", "x":13.25, "y":4.25}, {"label":"\u2193", "x":14.25, "y":4.25}, {"label":"\u2192", "x":15.25, "y":4.25}] | 7 | "layout": [ |
8 | {"label":"Esc", "x":0, "y":0}, | ||
9 | {"label":"1!", "x":1, "y":0}, | ||
10 | {"label":"2@", "x":2, "y":0}, | ||
11 | {"label":"3#", "x":3, "y":0}, | ||
12 | {"label":"4$", "x":4, "y":0}, | ||
13 | {"label":"5%", "x":5, "y":0}, | ||
14 | {"label":"6^", "x":6, "y":0}, | ||
15 | {"label":"7&", "x":7, "y":0}, | ||
16 | {"label":"8*", "x":8, "y":0}, | ||
17 | {"label":"9(", "x":9, "y":0}, | ||
18 | {"label":"0)", "x":10, "y":0}, | ||
19 | {"label":"-_", "x":11, "y":0}, | ||
20 | {"label":"=+", "x":12, "y":0}, | ||
21 | {"label":"Back Space", "x":13, "y":0, "w":2}, | ||
22 | {"label":"Num Lock", "x":15.5, "y":0}, | ||
23 | {"label":"/", "x":16.5, "y":0}, | ||
24 | {"label":"*", "x":17.5, "y":0}, | ||
25 | {"label":"-", "x":18.5, "y":0}, | ||
26 | |||
27 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | ||
28 | {"label":"Q", "x":1.5, "y":1}, | ||
29 | {"label":"W", "x":2.5, "y":1}, | ||
30 | {"label":"E", "x":3.5, "y":1}, | ||
31 | {"label":"R", "x":4.5, "y":1}, | ||
32 | {"label":"T", "x":5.5, "y":1}, | ||
33 | {"label":"Y", "x":6.5, "y":1}, | ||
34 | {"label":"U", "x":7.5, "y":1}, | ||
35 | {"label":"I", "x":8.5, "y":1}, | ||
36 | {"label":"O", "x":9.5, "y":1}, | ||
37 | {"label":"P", "x":10.5, "y":1}, | ||
38 | {"label":"[{", "x":11.5, "y":1}, | ||
39 | {"label":"]}", "x":12.5, "y":1}, | ||
40 | {"label":"\\|", "x":13.5, "y":1, "w":1.5}, | ||
41 | {"label":"7", "x":15.5, "y":1}, | ||
42 | {"label":"8", "x":16.5, "y":1}, | ||
43 | {"label":"9", "x":17.5, "y":1}, | ||
44 | {"label":"+", "x":18.5, "y":1}, | ||
45 | |||
46 | {"label":"Caps Lock", "x":0, "y":2, "w":1.25}, | ||
47 | {"label":"A", "x":1.75, "y":2}, | ||
48 | {"label":"S", "x":2.75, "y":2}, | ||
49 | {"label":"D", "x":3.75, "y":2}, | ||
50 | {"label":"F", "x":4.75, "y":2}, | ||
51 | {"label":"G", "x":5.75, "y":2}, | ||
52 | {"label":"H", "x":6.75, "y":2}, | ||
53 | {"label":"J", "x":7.75, "y":2}, | ||
54 | {"label":"K", "x":8.75, "y":2}, | ||
55 | {"label":"L", "x":9.75, "y":2}, | ||
56 | {"label":";:", "x":10.75, "y":2}, | ||
57 | {"label":"'\"", "x":11.75, "y":2}, | ||
58 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | ||
59 | {"label":"4", "x":15.5, "y":2}, | ||
60 | {"label":"5", "x":16.5, "y":2}, | ||
61 | {"label":"6", "x":17.5, "y":2}, | ||
62 | {"label":"+", "x":18.5, "y":2}, | ||
63 | |||
64 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | ||
65 | {"label":"Z", "x":2.25, "y":3}, | ||
66 | {"label":"X", "x":3.25, "y":3}, | ||
67 | {"label":"C", "x":4.25, "y":3}, | ||
68 | {"label":"V", "x":5.25, "y":3}, | ||
69 | {"label":"B", "x":6.25, "y":3}, | ||
70 | {"label":"N", "x":7.25, "y":3}, | ||
71 | {"label":"M", "x":8.25, "y":3}, | ||
72 | {"label":",<", "x":9.25, "y":3}, | ||
73 | {"label":".>", "x":10.25, "y":3}, | ||
74 | {"label":"/?", "x":11.25, "y":3}, | ||
75 | {"label":"Shift", "x":12.25, "y":3, "w":1.75}, | ||
76 | {"label":"\u2191", "x":14.25, "y":3.25}, | ||
77 | {"label":"1", "x":15.5, "y":3}, | ||
78 | {"label":"2", "x":16.5, "y":3}, | ||
79 | {"label":"3", "x":17.5, "y":3}, | ||
80 | {"label":"Enter", "x":18.5, "y":3, "h":2}, | ||
81 | |||
82 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | ||
83 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, | ||
84 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | ||
85 | {"label":"Space", "x":3.75, "y":4, "w":6.25}, | ||
86 | {"label":"Alt", "x":10, "y":4}, | ||
87 | {"label":"Fn", "x":11, "y":4}, | ||
88 | {"label":"Ctrl", "x":12, "y":4}, | ||
89 | {"label":"\u2190", "x":13.25, "y":4.25}, | ||
90 | {"label":"\u2193", "x":14.25, "y":4.25}, | ||
91 | {"label":"\u2192", "x":15.25, "y":4.25}, | ||
92 | {"label":"0", "x":16.5, "y":4}, | ||
93 | {"label":".", "x":17.5, "y":4} | ||
94 | ] | ||
8 | } | 95 | } |
9 | } | 96 | } |
10 | } | 97 | } |
diff --git a/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk b/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk index 60cf911c0..e5ddcae8d 100644 --- a/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk +++ b/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk | |||
@@ -1,45 +1 @@ | |||
1 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
2 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
3 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
4 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
5 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
6 | NKRO_ENABLE = yes | ||
7 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
8 | MIDI_ENABLE = no # MIDI controls | ||
9 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
10 | UNICODE_ENABLE = no # Unicode | ||
11 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
12 | RGBLIGHT_ENABLE = yes # Enable RGB underlight | ||
13 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812 | ||
14 | SLEEP_LED_ENABLE = yes | ||
15 | TAP_DANCE_ENABLE = yes | TAP_DANCE_ENABLE = yes | |
16 | |||
17 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled | ||
18 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | ||
19 | |||
20 | |||
21 | |||
22 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
23 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
24 | endif | ||
25 | |||
26 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
27 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
28 | endif | ||
29 | |||
30 | |||
31 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | ||
32 | # # | ||
33 | # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight | ||
34 | # # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB | ||
35 | # # | ||
36 | # # Set to B, C or D | ||
37 | # LFK_REV = D | ||
38 | |||
39 | # ifeq ($(LFK_REV), B) | ||
40 | # MCU = atmega32u4 | ||
41 | # else | ||
42 | # MCU = at90usb1286 | ||
43 | # endif | ||
44 | # OPT_DEFS += -DLFK_REV_$(LFK_REV) | ||
45 | # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\" | ||
diff --git a/keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk b/keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk deleted file mode 100644 index 4b9182a0a..000000000 --- a/keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
2 | MOUSEKEY_ENABLE = no # Mouse keys | ||
3 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
4 | CONSOLE_ENABLE = no # Console for debug | ||
5 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
6 | NKRO_ENABLE = yes | ||
7 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
8 | AUDIO_ENABLE = yes # Audio output | ||
9 | RGBLIGHT_ENABLE = yes # Enable RGB underlight | ||
10 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812 | ||
11 | SLEEP_LED_ENABLE = yes | ||
12 | |||
13 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled | ||
14 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | ||
15 | |||
16 | |||
17 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
18 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
19 | endif | ||
20 | |||
21 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
22 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
23 | endif | ||
24 | |||
25 | |||
26 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | ||
27 | # # | ||
28 | # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight | ||
29 | # # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB | ||
30 | # # | ||
31 | # # Set to B, C or D | ||
32 | # LFK_REV = D | ||
33 | |||
34 | # ifeq ($(LFK_REV), B) | ||
35 | # MCU = atmega32u4 | ||
36 | # else | ||
37 | # MCU = at90usb1286 | ||
38 | # endif | ||
39 | # OPT_DEFS += -DLFK_REV_$(LFK_REV) | ||
40 | # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\" | ||
diff --git a/keyboards/lfkeyboards/mini1800/post_rules.mk b/keyboards/lfkeyboards/mini1800/post_rules.mk deleted file mode 100644 index f04e10e4a..000000000 --- a/keyboards/lfkeyboards/mini1800/post_rules.mk +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | ifeq ($(LFK_REV), A) | ||
2 | MCU = at90usb1286 | ||
3 | else | ||
4 | MCU = at90usb646 | ||
5 | endif | ||
6 | |||
7 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
8 | # TMK_COMMON_DEFS += -DISSI_ENABLE | ||
9 | endif | ||
diff --git a/keyboards/lfkeyboards/mini1800/readme.md b/keyboards/lfkeyboards/mini1800/readme.md index e2839275c..4e35ac537 100644 --- a/keyboards/lfkeyboards/mini1800/readme.md +++ b/keyboards/lfkeyboards/mini1800/readme.md | |||
@@ -1,12 +1,26 @@ | |||
1 | Mini1800 | 1 | # Mini1800 |
2 | === | ||
3 | 2 | ||
4 | Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) | 3 | * Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) |
5 | Hardware Supported: Mini1800 | 4 | * Hardware Supported: |
6 | Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) | 5 | * [Mini1800 RevA](reva/) - Green PCB with AT90USB1286 |
6 | * [Mini1800 RevC](revc/) - Black PCB with AT90USB646; first public release | ||
7 | * Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) | ||
7 | 8 | ||
8 | Make example for this keyboard (after setting up your build environment): | 9 | Make example for this keyboard (after setting up your build environment): |
9 | 10 | ||
10 | make lfkeyboards/mini1800:default | 11 | make lfkeyboards/mini1800/reva:default |
12 | make lfkeyboards/mini1800/revc:default | ||
11 | 13 | ||
12 | See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. | 14 | Flashing example for this keyboard: |
15 | |||
16 | make lfkeyboards/mini1800/reva:default:flash | ||
17 | make lfkeyboards/mini1800/revc:default:flash | ||
18 | |||
19 | ## Bootloader | ||
20 | |||
21 | To reset the board into bootloader mode, do one of the following: | ||
22 | |||
23 | * **Physical reset button**: Briefly press the button on the bottom of the PCB (between Q and W keys) | ||
24 | * **Keycode in keymap**: Press the key mapped to `RESET` if it is available (`Fn`+`Right Shift`, then tap `Enter` by default) | ||
25 | |||
26 | 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/lfkeyboards/mini1800/reva/post_rules.mk b/keyboards/lfkeyboards/mini1800/reva/post_rules.mk new file mode 100644 index 000000000..ad997587b --- /dev/null +++ b/keyboards/lfkeyboards/mini1800/reva/post_rules.mk | |||
@@ -0,0 +1,7 @@ | |||
1 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
2 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
3 | endif | ||
4 | |||
5 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
6 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
7 | endif | ||
diff --git a/keyboards/lfkeyboards/mini1800/reva/readme.md b/keyboards/lfkeyboards/mini1800/reva/readme.md new file mode 100644 index 000000000..8460bb532 --- /dev/null +++ b/keyboards/lfkeyboards/mini1800/reva/readme.md | |||
@@ -0,0 +1,22 @@ | |||
1 | # Mini1800 RevA | ||
2 | |||
3 | * Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) | ||
4 | * Hardware Supported: Mini1800 RevA (Green PCB with AT90USB1286) | ||
5 | * Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) | ||
6 | |||
7 | Make example for this keyboard (after setting up your build environment): | ||
8 | |||
9 | make lfkeyboards/mini1800/reva:default | ||
10 | |||
11 | Flashing example for this keyboard: | ||
12 | |||
13 | make lfkeyboards/mini1800/reva:default:flash | ||
14 | |||
15 | ## Bootloader | ||
16 | |||
17 | To reset the board into bootloader mode, do one of the following: | ||
18 | |||
19 | * **Physical reset button**: Briefly press the button on the bottom of the PCB (between Q and W keys) | ||
20 | * **Keycode in keymap**: Press the key mapped to `RESET` if it is available (`Fn`+`Right Shift`, then tap `Enter` by default) | ||
21 | |||
22 | 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/lfkeyboards/mini1800/reva/rules.mk b/keyboards/lfkeyboards/mini1800/reva/rules.mk new file mode 100644 index 000000000..1f67c5f19 --- /dev/null +++ b/keyboards/lfkeyboards/mini1800/reva/rules.mk | |||
@@ -0,0 +1,29 @@ | |||
1 | # MCU name | ||
2 | MCU = at90usb1286 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = yes # Audio output | ||
19 | |||
20 | # RGB code is implemented in lfkeyboards, not WS2812 | ||
21 | RGBLIGHT_CUSTOM_DRIVER = yes | ||
22 | BACKLIGHT_DRIVER = custom | ||
23 | SLEEP_LED_ENABLE = yes | ||
24 | |||
25 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled | ||
26 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | ||
27 | |||
28 | # Extra source files for IS3731 lighting | ||
29 | SRC = TWIlib.c issi.c lighting.c | ||
diff --git a/keyboards/lfkeyboards/mini1800/revc/post_rules.mk b/keyboards/lfkeyboards/mini1800/revc/post_rules.mk new file mode 100644 index 000000000..ad997587b --- /dev/null +++ b/keyboards/lfkeyboards/mini1800/revc/post_rules.mk | |||
@@ -0,0 +1,7 @@ | |||
1 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
2 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
3 | endif | ||
4 | |||
5 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
6 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
7 | endif | ||
diff --git a/keyboards/lfkeyboards/mini1800/revc/readme.md b/keyboards/lfkeyboards/mini1800/revc/readme.md new file mode 100644 index 000000000..5d442cb6d --- /dev/null +++ b/keyboards/lfkeyboards/mini1800/revc/readme.md | |||
@@ -0,0 +1,24 @@ | |||
1 | # Mini1800 RevC | ||
2 | |||
3 | The first public release of the Mini1800. | ||
4 | |||
5 | * Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) | ||
6 | * Hardware Supported: Mini1800 RevC (Black PCB with AT90USB646) | ||
7 | * Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make lfkeyboards/mini1800/revc:default | ||
12 | |||
13 | Flashing example for this keyboard: | ||
14 | |||
15 | make lfkeyboards/mini1800/revc:default:flash | ||
16 | |||
17 | ## Bootloader | ||
18 | |||
19 | To reset the board into bootloader mode, do one of the following: | ||
20 | |||
21 | * **Physical reset button**: Briefly press the button on the bottom of the PCB (between Q and W keys) | ||
22 | * **Keycode in keymap**: Press the key mapped to `RESET` if it is available (`Fn`+`Right Shift`, then tap `Enter` by default) | ||
23 | |||
24 | 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/lfkeyboards/mini1800/revc/rules.mk b/keyboards/lfkeyboards/mini1800/revc/rules.mk new file mode 100644 index 000000000..0ea69b6d6 --- /dev/null +++ b/keyboards/lfkeyboards/mini1800/revc/rules.mk | |||
@@ -0,0 +1,29 @@ | |||
1 | # MCU name | ||
2 | MCU = at90usb646 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = yes # Audio output | ||
19 | |||
20 | # RGB code is implemented in lfkeyboards, not WS2812 | ||
21 | RGBLIGHT_CUSTOM_DRIVER = yes | ||
22 | BACKLIGHT_DRIVER = custom | ||
23 | SLEEP_LED_ENABLE = yes | ||
24 | |||
25 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled | ||
26 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | ||
27 | |||
28 | # Extra source files for IS3731 lighting | ||
29 | SRC = TWIlib.c issi.c lighting.c | ||
diff --git a/keyboards/lfkeyboards/mini1800/rules.mk b/keyboards/lfkeyboards/mini1800/rules.mk deleted file mode 100644 index c9a9b0105..000000000 --- a/keyboards/lfkeyboards/mini1800/rules.mk +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | # Set the LFK87 hardware version. | ||
2 | # | ||
3 | # RevA - Green PCB. at90usb1286 Only 3 exist | ||
4 | # RevB - We don't talk about RevB | ||
5 | # RevC - Black PCB. at90usb646 First public release | ||
6 | # | ||
7 | # Set to A or C | ||
8 | LFK_REV = C | ||
9 | |||
10 | BOOTLOADER = atmel-dfu | ||
11 | OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) | ||
12 | |||
13 | # Extra source files for IS3731 lighting | ||
14 | SRC = TWIlib.c issi.c lighting.c | ||
15 | |||
16 | # Build Options | ||
17 | # change yes to no to disable | ||
18 | # | ||
19 | BACKLIGHT_DRIVER = custom | ||