diff options
Diffstat (limited to 'keyboards/moonlander')
-rw-r--r-- | keyboards/moonlander/config.h | 9 | ||||
-rw-r--r-- | keyboards/moonlander/info.json | 6 | ||||
-rw-r--r-- | keyboards/moonlander/keymaps/oryx/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/moonlander/matrix.c | 4 | ||||
-rw-r--r-- | keyboards/moonlander/moonlander.c | 2 | ||||
-rw-r--r-- | keyboards/moonlander/moonlander.h | 2 | ||||
-rw-r--r-- | keyboards/moonlander/readme.md | 16 |
7 files changed, 29 insertions, 12 deletions
diff --git a/keyboards/moonlander/config.h b/keyboards/moonlander/config.h index 5951a485d3..2e5d862e37 100644 --- a/keyboards/moonlander/config.h +++ b/keyboards/moonlander/config.h @@ -20,17 +20,8 @@ #include "config_common.h" -/* USB Device descriptor parameter */ -// clang-format off -#define VENDOR_ID 0x3297 -#define PRODUCT_ID 0x1969 -#define MANUFACTURER ZSA Technology Labs -#define PRODUCT Moonlander Mark I -#define DEVICE_VER 0x0001 #define WEBUSB_LANDING_PAGE_URL u8"configure.ergodox-ez.com" -// clang-format on - /* key matrix size */ #define MATRIX_ROWS 12 #define MATRIX_COLS 7 diff --git a/keyboards/moonlander/info.json b/keyboards/moonlander/info.json index 60b560eeee..6322dccd5b 100644 --- a/keyboards/moonlander/info.json +++ b/keyboards/moonlander/info.json @@ -1,7 +1,13 @@ { "keyboard_name": "Moonlander Mark I", + "manufacturer": "ZSA Technology Labs", "url": "zsa.io/moonlander", "maintainer": "ZSA via Drashna", + "usb": { + "vid": "0x3297", + "pid": "0x1969", + "device_version": "0.0.1" + }, "layouts": { "LAYOUT_moonlander": { "layout": [ diff --git a/keyboards/moonlander/keymaps/oryx/rules.mk b/keyboards/moonlander/keymaps/oryx/rules.mk index d269d04c82..5026e22db5 100644 --- a/keyboards/moonlander/keymaps/oryx/rules.mk +++ b/keyboards/moonlander/keymaps/oryx/rules.mk @@ -1,4 +1,4 @@ -SRC += ../default/keymap.c +INTROSPECTION_KEYMAP_C = ../default/keymap.c -include ../default/rules.mk ORYX_ENABLE = yes diff --git a/keyboards/moonlander/matrix.c b/keyboards/moonlander/matrix.c index 5f95dccc01..2ad4ccc5fd 100644 --- a/keyboards/moonlander/matrix.c +++ b/keyboards/moonlander/matrix.c @@ -227,3 +227,7 @@ void matrix_power_up(void) { } } + +bool is_transport_connected(void) { + return mcp23018_initd; +}
\ No newline at end of file diff --git a/keyboards/moonlander/moonlander.c b/keyboards/moonlander/moonlander.c index e849bff4e2..c217782d3f 100644 --- a/keyboards/moonlander/moonlander.c +++ b/keyboards/moonlander/moonlander.c @@ -320,7 +320,7 @@ bool music_mask_kb(uint16_t keycode) { case QK_LAYER_TAP_TOGGLE ... QK_LAYER_MOD_MAX: case QK_MOD_TAP ... QK_MOD_TAP_MAX: case AU_ON ... MUV_DE: - case RESET: + case QK_BOOT: case EEP_RST: return false; default: diff --git a/keyboards/moonlander/moonlander.h b/keyboards/moonlander/moonlander.h index e2b4c76a11..b2e251900e 100644 --- a/keyboards/moonlander/moonlander.h +++ b/keyboards/moonlander/moonlander.h @@ -77,3 +77,5 @@ typedef union { } keyboard_config_t; extern keyboard_config_t keyboard_config; + +bool is_transport_connected(void);
\ No newline at end of file diff --git a/keyboards/moonlander/readme.md b/keyboards/moonlander/readme.md index bf80f05569..733780abde 100644 --- a/keyboards/moonlander/readme.md +++ b/keyboards/moonlander/readme.md @@ -41,4 +41,18 @@ If you're using the Smart LED (layer indication) feature from the Oryx Configura This changes the `RGB_TOG` keycode so that it will toggle the lights on and off, in a way that will allow the Smart LEDs to continue to work, even with the rest of the LEDs turned off. -Additionally, a new keycode has been added to toggle the Smart LEDs. Use `TOGGLE_LAYER_COLOR`, if you aren't already. +Additionally, a new keycode has been added to toggle the Smart LEDs. Use `TOGGLE_LAYER_COLOR`, if you aren't already. + +### Detecting split / Gaming mode + +To make it extra gaming friendly, you can configure what happens when you disconnect the right half. This is especially useful when using gaming unfriendly layers or layouts (e.g. home row mods, dvorak, colemak). + +Example for enabling a specific layer while right side is disconnected: + +``` +void housekeeping_task_user(void) { + if (!is_transport_connected()) { + // set layer + } +} +```
\ No newline at end of file |