diff options
| author | Joel Challis <git@zvecr.com> | 2020-11-17 17:06:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-17 17:06:30 +0000 |
| commit | ddcb1794fa83e62e5e48536f4bc02ada63da411a (patch) | |
| tree | db5df8970f8ed22c77bdd021b781a429a5f05b49 /keyboards/1upkeyboards | |
| parent | adfd34c4512f6215a49a8f705ce408d6c82fb8cc (diff) | |
| download | qmk_firmware-ddcb1794fa83e62e5e48536f4bc02ada63da411a.tar.gz qmk_firmware-ddcb1794fa83e62e5e48536f4bc02ada63da411a.zip | |
Refactor to use led config - Part 1 (#10905)
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
Diffstat (limited to 'keyboards/1upkeyboards')
| -rw-r--r-- | keyboards/1upkeyboards/1up60hte/1up60hte.c | 16 | ||||
| -rw-r--r-- | keyboards/1upkeyboards/1up60hte/config.h | 3 |
2 files changed, 3 insertions, 16 deletions
diff --git a/keyboards/1upkeyboards/1up60hte/1up60hte.c b/keyboards/1upkeyboards/1up60hte/1up60hte.c index 3af0e9d40..460e42a0e 100644 --- a/keyboards/1upkeyboards/1up60hte/1up60hte.c +++ b/keyboards/1upkeyboards/1up60hte/1up60hte.c | |||
| @@ -16,19 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include "1up60hte.h" | 18 | #include "1up60hte.h" |
| 19 | |||
| 20 | void keyboard_pre_init_kb(void) { | ||
| 21 | // put your keyboard start-up code here | ||
| 22 | // runs once when the firmware starts up | ||
| 23 | setPinOutput(B6); | ||
| 24 | keyboard_pre_init_user(); | ||
| 25 | } | ||
| 26 | |||
| 27 | void led_set_kb(uint8_t usb_led) { | ||
| 28 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
| 29 | writePinLow(B6); | ||
| 30 | } else { | ||
| 31 | writePinHigh(B6); | ||
| 32 | } | ||
| 33 | led_set_user(usb_led); | ||
| 34 | } \ No newline at end of file | ||
diff --git a/keyboards/1upkeyboards/1up60hte/config.h b/keyboards/1upkeyboards/1up60hte/config.h index 8c4d2fc30..c3ba030de 100644 --- a/keyboards/1upkeyboards/1up60hte/config.h +++ b/keyboards/1upkeyboards/1up60hte/config.h | |||
| @@ -40,6 +40,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 40 | /* COL2ROW or ROW2COL */ | 40 | /* COL2ROW or ROW2COL */ |
| 41 | #define DIODE_DIRECTION COL2ROW | 41 | #define DIODE_DIRECTION COL2ROW |
| 42 | 42 | ||
| 43 | #define LED_CAPS_LOCK_PIN B6 | ||
| 44 | #define LED_PIN_ON_STATE 0 | ||
| 45 | |||
| 43 | /* number of backlight levels */ | 46 | /* number of backlight levels */ |
| 44 | #define BACKLIGHT_PIN B7 | 47 | #define BACKLIGHT_PIN B7 |
| 45 | #ifdef BACKLIGHT_PIN | 48 | #ifdef BACKLIGHT_PIN |
