diff options
| author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-02-25 17:03:36 -0800 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-02-25 17:03:36 -0800 |
| commit | d7e3d718d0bd0225c8f2887561cd483461c0a04c (patch) | |
| tree | b882630471cefdc396f80b46e222a266b9bd6490 | |
| parent | da5e9043061ae3baadc7922acddf15dc92bffb7b (diff) | |
| download | qmk_firmware-d7e3d718d0bd0225c8f2887561cd483461c0a04c.tar.gz qmk_firmware-d7e3d718d0bd0225c8f2887561cd483461c0a04c.zip | |
Some minor refactoring of boards in 1upkeyboards directory (#5236)
* use #pragma once
* get rid of code for unused indicators
* pragma once and other small fixes for consistency
* use #pragma once
* pragma once and other small fixes for consistency
* add a short blurb to the readme
* turn on compiler optimization flags
* remove the compiler optimization
* remove compiler optimization for super16
| -rw-r--r-- | keyboards/1upkeyboards/1up60hse/1up60hse.h | 4 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60hse/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c | 28 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60hte/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60rgb/1up60rgb.h | 5 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60rgb/config.h | 5 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60rgb/readme.md | 2 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60rgb/rules.mk | 20 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/readme.md | 2 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/super16/keymaps/default/config.h | 2 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/super16/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/sweet16/config.h | 4 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/sweet16/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/sweet16/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/sweet16/sweet16.h | 4 |
15 files changed, 26 insertions, 60 deletions
diff --git a/keyboards/1upkeyboards/1up60hse/1up60hse.h b/keyboards/1upkeyboards/1up60hse/1up60hse.h index d24bbaabf..f1b4f5e43 100644 --- a/keyboards/1upkeyboards/1up60hse/1up60hse.h +++ b/keyboards/1upkeyboards/1up60hse/1up60hse.h | |||
| @@ -13,8 +13,7 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #ifndef KB_H | 16 | #pragma once |
| 17 | #define KB_H | ||
| 18 | 17 | ||
| 19 | #include "quantum.h" | 18 | #include "quantum.h" |
| 20 | 19 | ||
| @@ -36,4 +35,3 @@ | |||
| 36 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, KC_NO, KC_NO, K3D }, \ | 35 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, KC_NO, KC_NO, K3D }, \ |
| 37 | { K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, KC_NO, KC_NO, K49, K4A, K4B, KC_NO, K4D } \ | 36 | { K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, KC_NO, KC_NO, K49, K4A, K4B, KC_NO, K4D } \ |
| 38 | } | 37 | } |
| 39 | #endif | ||
diff --git a/keyboards/1upkeyboards/1up60hse/rules.mk b/keyboards/1upkeyboards/1up60hse/rules.mk index f33e33fd9..72e6849e0 100644 --- a/keyboards/1upkeyboards/1up60hse/rules.mk +++ b/keyboards/1upkeyboards/1up60hse/rules.mk | |||
| @@ -68,5 +68,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | |||
| 68 | AUDIO_ENABLE = no # Audio output on port C6 | 68 | AUDIO_ENABLE = no # Audio output on port C6 |
| 69 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 69 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 70 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | 70 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) |
| 71 | EXTRAFLAGS += -flto | ||
| 71 | 72 | ||
| 72 | LAYOUTS = 60_ansi | 73 | LAYOUTS = 60_ansi |
diff --git a/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c b/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c index 396b66080..8c3916629 100644 --- a/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c +++ b/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c | |||
| @@ -46,35 +46,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void led_set_user(uint8_t usb_led) { | 48 | void led_set_user(uint8_t usb_led) { |
| 49 | 49 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | |
| 50 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 51 | |||
| 52 | } else { | ||
| 53 | |||
| 54 | } | ||
| 55 | |||
| 56 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 57 | writePinLow(B6); | 50 | writePinLow(B6); |
| 58 | } else { | 51 | } else { |
| 59 | writePinHigh(B6); | 52 | writePinHigh(B6); |
| 60 | } | 53 | } |
| 61 | |||
| 62 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 63 | |||
| 64 | } else { | ||
| 65 | |||
| 66 | } | ||
| 67 | |||
| 68 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 69 | |||
| 70 | } else { | ||
| 71 | |||
| 72 | } | ||
| 73 | |||
| 74 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 75 | |||
| 76 | } else { | ||
| 77 | |||
| 78 | } | ||
| 79 | |||
| 80 | } | 54 | } |
diff --git a/keyboards/1upkeyboards/1up60hte/rules.mk b/keyboards/1upkeyboards/1up60hte/rules.mk index b8b558299..860a754a6 100644 --- a/keyboards/1upkeyboards/1up60hte/rules.mk +++ b/keyboards/1upkeyboards/1up60hte/rules.mk | |||
| @@ -54,5 +54,6 @@ NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https:/ | |||
| 54 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 54 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 55 | AUDIO_ENABLE = no | 55 | AUDIO_ENABLE = no |
| 56 | RGBLIGHT_ENABLE = yes | 56 | RGBLIGHT_ENABLE = yes |
| 57 | EXTRAFLAGS += -flto | ||
| 57 | 58 | ||
| 58 | LAYOUTS = 60_hhkb | 59 | LAYOUTS = 60_hhkb |
diff --git a/keyboards/1upkeyboards/1up60rgb/1up60rgb.h b/keyboards/1upkeyboards/1up60rgb/1up60rgb.h index 6905fd220..0f6818a6d 100644 --- a/keyboards/1upkeyboards/1up60rgb/1up60rgb.h +++ b/keyboards/1upkeyboards/1up60rgb/1up60rgb.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef KB_H | 1 | #pragma once |
| 2 | #define KB_H | ||
| 3 | 2 | ||
| 4 | #include "quantum.h" | 3 | #include "quantum.h" |
| 5 | 4 | ||
| @@ -77,5 +76,3 @@ | |||
| 77 | K300, KC_NO,K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \ | 76 | K300, KC_NO,K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \ |
| 78 | KC_NO,K401, K403, K406, KC_NO,K411, K413, KC_NO \ | 77 | KC_NO,K401, K403, K406, KC_NO,K411, K413, KC_NO \ |
| 79 | ) | 78 | ) |
| 80 | |||
| 81 | #endif | ||
diff --git a/keyboards/1upkeyboards/1up60rgb/config.h b/keyboards/1upkeyboards/1up60rgb/config.h index 86696dab8..fbafe0c44 100644 --- a/keyboards/1upkeyboards/1up60rgb/config.h +++ b/keyboards/1upkeyboards/1up60rgb/config.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef CONFIG_H | 1 | #pragma once |
| 2 | #define CONFIG_H | ||
| 3 | 2 | ||
| 4 | #include "config_common.h" | 3 | #include "config_common.h" |
| 5 | 4 | ||
| @@ -46,5 +45,3 @@ | |||
| 46 | #define RGBLIGHT_SAT_STEP 8 | 45 | #define RGBLIGHT_SAT_STEP 8 |
| 47 | #define RGBLIGHT_VAL_STEP 8 | 46 | #define RGBLIGHT_VAL_STEP 8 |
| 48 | #endif | 47 | #endif |
| 49 | |||
| 50 | #endif | ||
diff --git a/keyboards/1upkeyboards/1up60rgb/readme.md b/keyboards/1upkeyboards/1up60rgb/readme.md index de3ad98b7..ad733f6b5 100644 --- a/keyboards/1upkeyboards/1up60rgb/readme.md +++ b/keyboards/1upkeyboards/1up60rgb/readme.md | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # 1upkeyboards 60% RGB | 1 | # 1up60rgb 60% RGB |
| 2 | 2 | ||
| 3 | Firmware for custom keyboard PCB with 60% key layout. | 3 | Firmware for custom keyboard PCB with 60% key layout. |
| 4 | 4 | ||
diff --git a/keyboards/1upkeyboards/1up60rgb/rules.mk b/keyboards/1upkeyboards/1up60rgb/rules.mk index 540e4ea96..8b1cf6667 100644 --- a/keyboards/1upkeyboards/1up60rgb/rules.mk +++ b/keyboards/1upkeyboards/1up60rgb/rules.mk | |||
| @@ -44,15 +44,15 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096 | |||
| 44 | # Build Options | 44 | # Build Options |
| 45 | # comment out to disable the options. | 45 | # comment out to disable the options. |
| 46 | # | 46 | # |
| 47 | BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) | 47 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 48 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | 48 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 49 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | 49 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 50 | CONSOLE_ENABLE ?= no # Console for debug(+400) | 50 | CONSOLE_ENABLE = no # Console for debug(+400) |
| 51 | COMMAND_ENABLE ?= no # Commands for debug and configuration | 51 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 52 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | 52 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 53 | NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 53 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 54 | BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality | 54 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 55 | AUDIO_ENABLE ?= no | 55 | AUDIO_ENABLE = no |
| 56 | RGBLIGHT_ENABLE ?= yes | 56 | RGBLIGHT_ENABLE = yes |
| 57 | 57 | ||
| 58 | LAYOUTS = 60_ansi 60_iso 60_ansi_split_bs_rshift 60_hhkb | 58 | LAYOUTS = 60_ansi 60_iso 60_ansi_split_bs_rshift 60_hhkb |
diff --git a/keyboards/1upkeyboards/readme.md b/keyboards/1upkeyboards/readme.md index 4f075d827..de8ae36ac 100644 --- a/keyboards/1upkeyboards/readme.md +++ b/keyboards/1upkeyboards/readme.md | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | # 1UP Keyboards | 1 | # 1UP Keyboards |
| 2 | 2 | ||
| 3 | 1UP Keyboards is an online mechanical keyboard retailer located in New York, USA. | ||
| 4 | |||
| 3 | Website: [1UP Keyboards](https://www.1upkeyboards.com/) | 5 | Website: [1UP Keyboards](https://www.1upkeyboards.com/) |
| 4 | Discord: [Server Invite](https://discordapp.com/invite/c6SYn8) | 6 | Discord: [Server Invite](https://discordapp.com/invite/c6SYn8) |
| 5 | YouTube: [skiwithpete](https://www.youtube.com/user/skiwithpete) \ No newline at end of file | 7 | YouTube: [skiwithpete](https://www.youtube.com/user/skiwithpete) \ No newline at end of file |
diff --git a/keyboards/1upkeyboards/super16/keymaps/default/config.h b/keyboards/1upkeyboards/super16/keymaps/default/config.h index 16fc8b974..26c6d6ade 100644 --- a/keyboards/1upkeyboards/super16/keymaps/default/config.h +++ b/keyboards/1upkeyboards/super16/keymaps/default/config.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2019 'mechmerlin' | 1 | /* Copyright 2019 MechMerlin |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/keyboards/1upkeyboards/super16/rules.mk b/keyboards/1upkeyboards/super16/rules.mk index efcde8834..8fb44b9b5 100644 --- a/keyboards/1upkeyboards/super16/rules.mk +++ b/keyboards/1upkeyboards/super16/rules.mk | |||
| @@ -80,4 +80,4 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
| 80 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 80 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 81 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | 81 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) |
| 82 | 82 | ||
| 83 | LAYOUTS = ortho_4x4 \ No newline at end of file | 83 | LAYOUTS = ortho_4x4 |
diff --git a/keyboards/1upkeyboards/sweet16/config.h b/keyboards/1upkeyboards/sweet16/config.h index eedd3708f..b05b57740 100644 --- a/keyboards/1upkeyboards/sweet16/config.h +++ b/keyboards/1upkeyboards/sweet16/config.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef CONFIG_H | 1 | #pragma once |
| 2 | #define CONFIG_H | ||
| 3 | 2 | ||
| 4 | #include "config_common.h" | 3 | #include "config_common.h" |
| 5 | 4 | ||
| @@ -47,4 +46,3 @@ | |||
| 47 | #define RGBLIGHT_VAL_STEP 8 | 46 | #define RGBLIGHT_VAL_STEP 8 |
| 48 | #endif | 47 | #endif |
| 49 | 48 | ||
| 50 | #endif | ||
diff --git a/keyboards/1upkeyboards/sweet16/readme.md b/keyboards/1upkeyboards/sweet16/readme.md index 3b7b1d6f0..f096a5fc9 100644 --- a/keyboards/1upkeyboards/sweet16/readme.md +++ b/keyboards/1upkeyboards/sweet16/readme.md | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | Sweet16 | 1 | # Sweet 16 Macropad |
| 2 | === | ||
| 3 | 2 | ||
| 4 | A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Bishop Keyboards | 3 | A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Bishop Keyboards |
| 5 | 4 | ||
diff --git a/keyboards/1upkeyboards/sweet16/rules.mk b/keyboards/1upkeyboards/sweet16/rules.mk index 212e74059..e3436dc33 100644 --- a/keyboards/1upkeyboards/sweet16/rules.mk +++ b/keyboards/1upkeyboards/sweet16/rules.mk | |||
| @@ -53,4 +53,5 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
| 53 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 53 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 54 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 54 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 55 | AUDIO_ENABLE = no | 55 | AUDIO_ENABLE = no |
| 56 | RGBLIGHT_ENABLE = yes \ No newline at end of file | 56 | RGBLIGHT_ENABLE = yes |
| 57 | EXTRAFLAGS += -flto | ||
diff --git a/keyboards/1upkeyboards/sweet16/sweet16.h b/keyboards/1upkeyboards/sweet16/sweet16.h index 879f51fae..7320ccd9e 100644 --- a/keyboards/1upkeyboards/sweet16/sweet16.h +++ b/keyboards/1upkeyboards/sweet16/sweet16.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef KB_H | 1 | #pragma once |
| 2 | #define KB_H | ||
| 3 | 2 | ||
| 4 | #include "quantum.h" | 3 | #include "quantum.h" |
| 5 | 4 | ||
| @@ -29,4 +28,3 @@ | |||
| 29 | { KC_NO, K31, K32, KC_NO } \ | 28 | { KC_NO, K31, K32, KC_NO } \ |
| 30 | } | 29 | } |
| 31 | 30 | ||
| 32 | #endif | ||
