-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[keyboard] Add Phantagom numpads #18493
Conversation
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
* bastardkb: cleanup blackpill configuration Fixes qmk#17 * bastardkb: fix splinky configuration The pinout of the splinky changed between the last beta batch, and the production one. This commit updates the keyboard definition to support the new pinout by default, while offering backward compatibility. Define `SPLINKY_BETA_PINOUT` to build the firmware with pre-production pinout. Fixes qmk#15 * bastardkb: add support for STeMCell * Update scylla/tbkmini/skeletyl outdated readmes * bastardkb/dilemma: enable circular scroll * bastardkb/dilemma: add initial version of the `via` keymap * bastardkb/dilemma/assembled: add new keyboard Fixes qmk#20 * bastardkb/dilemma: remove elite-c * Initial support for the Dilemma 3x5+3 Assembled RGB * Address code review comments * Address more comments * Address review comments * Address more nits * bastardkb: split splinky-based keyboards to distinguish between Splinky v2 and v3 pinout
Co-authored-by: Ryan <fauxpark@gmail.com>
Swap Hands on/off - it's `SH_ON/OFF` not `SW_ON/OFF`
ANAVI Knob 1 is a mini mechanical keyboard with a clickable rotary encoder, USB-C, RP2040 microcontroller and I2C slot for a display. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* Furthark layout
* Latest updates * Aligning and cleaning up planck and babyv layouts * Added license, cleaned up errors
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Thank you for your contribution! |
} | ||
|
||
#ifdef OLED_ENABLE | ||
bool oled_task_user(void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could all of this be moved to oled_mpad.c
, and use the oled_task_kb
function?
"name": "oled_mpad", | ||
"keyboard_name": "oled_mpad", | ||
"manufacturer": "Phantagom", | ||
"vendorId": "0xF8E8", | ||
"productId": "0x0001", | ||
"matrix": { "rows": 6, "cols": 5 }, | ||
"url": "", | ||
"lighting": "qmk_rgblight", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "oled_mpad", | |
"keyboard_name": "oled_mpad", | |
"manufacturer": "Phantagom", | |
"vendorId": "0xF8E8", | |
"productId": "0x0001", | |
"matrix": { "rows": 6, "cols": 5 }, | |
"url": "", | |
"lighting": "qmk_rgblight", | |
"keyboard_name": "oled_mpad", | |
"manufacturer": "Phantagom", |
void matrix_init_user(void) { | ||
// set CapsLock LED to output and low | ||
setPinOutput(GP4); | ||
writePinLow(GP4); | ||
// set NumLock LED to output and low | ||
setPinOutput(GP5); | ||
writePinLow(GP5); | ||
// set ScrollLock LED to output and low | ||
setPinOutput(GP6); | ||
writePinLow(GP6); | ||
} | ||
|
||
void led_update_ports(led_t led_state) { | ||
writePin(GP4, led_state.num_lock); | ||
writePin(GP5, led_state.caps_lock); | ||
writePin(GP6, led_state.scroll_lock); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void matrix_init_user(void) { | |
// set CapsLock LED to output and low | |
setPinOutput(GP4); | |
writePinLow(GP4); | |
// set NumLock LED to output and low | |
setPinOutput(GP5); | |
writePinLow(GP5); | |
// set ScrollLock LED to output and low | |
setPinOutput(GP6); | |
writePinLow(GP6); | |
} | |
void led_update_ports(led_t led_state) { | |
writePin(GP4, led_state.num_lock); | |
writePin(GP5, led_state.caps_lock); | |
writePin(GP6, led_state.scroll_lock); | |
} |
"vid": "0xF8E8", | ||
"pid": "0x0001", | ||
"device_version": "0.0.3" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}, | |
}, | |
"indicators": { | |
"caps_lock": "GP5", | |
"num_lock": "GP4", | |
"scroll_lock": "GP6", | |
"on_state": 0 | |
}, |
void matrix_init_user(void) { | ||
// set CapsLock LED to output and low | ||
setPinOutput(GP4); | ||
writePinLow(GP4); | ||
// set NumLock LED to output and low | ||
setPinOutput(GP5); | ||
writePinLow(GP5); | ||
// set ScrollLock LED to output and low | ||
setPinOutput(GP6); | ||
writePinLow(GP6); | ||
} | ||
|
||
bool led_update_kb(led_t led_state) { | ||
bool res = led_update_user(led_state); | ||
if(res) { | ||
writePin(GP4, led_state.num_lock); | ||
writePin(GP5, led_state.caps_lock); | ||
//writePin(B2, led_state.scroll_lock); | ||
} | ||
return res; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void matrix_init_user(void) { | |
// set CapsLock LED to output and low | |
setPinOutput(GP4); | |
writePinLow(GP4); | |
// set NumLock LED to output and low | |
setPinOutput(GP5); | |
writePinLow(GP5); | |
// set ScrollLock LED to output and low | |
setPinOutput(GP6); | |
writePinLow(GP6); | |
} | |
bool led_update_kb(led_t led_state) { | |
bool res = led_update_user(led_state); | |
if(res) { | |
writePin(GP4, led_state.num_lock); | |
writePin(GP5, led_state.caps_lock); | |
//writePin(B2, led_state.scroll_lock); | |
} | |
return res; | |
} |
@@ -0,0 +1,8 @@ | |||
# OLED_MPAD | |||
|
|||
![OLED_MPAD](https://i.imgur.com/EEJFeOl.jpeg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![OLED_MPAD](https://i.imgur.com/EEJFeOl.jpeg) | |
![OLED_MPAD](https://i.imgur.com/EEJFeOlh.jpeg) |
@@ -0,0 +1,8 @@ | |||
# RGB_NPAD | |||
|
|||
![RGB_NPAD](https://i.imgur.com/EuGAMye.jpeg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![RGB_NPAD](https://i.imgur.com/EuGAMye.jpeg) | |
![RGB_NPAD](https://i.imgur.com/EuGAMyeh.jpeg) |
# MCU name | ||
MCU = RP2040 | ||
# Bootloader selection | ||
BOOTLOADER = rp2040 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# MCU name | |
MCU = RP2040 | |
# Bootloader selection | |
BOOTLOADER = rp2040 |
"keyboard_name": "rgb_npad", | ||
"manufacturer": "Phantagom", | ||
"url": "", | ||
"maintainer": "Phantagom", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"maintainer": "Phantagom", | |
"maintainer": "Phantagom", | |
"processor": "RP2040", | |
"bootloader": "rp2040", |
NKRO_ENABLE = yes # Enable N-Key Rollover | ||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
RGBLIGHT_DRIVER = WS2812 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RGBLIGHT_DRIVER = WS2812 |
@@ -0,0 +1,19 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be removed.
Thank you for your contribution! |
Thank you for your contribution! |
Description
Add support for 2 numpads / marco pads. Includes default and via support.
Types of Changes
Issues Fixed or Closed by This PR
Checklist