diff options
author | Agent Blu, 006 <blu006@ucr.edu> | 2019-06-24 23:11:51 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-06-24 23:11:51 -0700 |
commit | 48b5903677b773940f1f92d9cb1bf278290fc075 (patch) | |
tree | 1da2c2119aeb468ae184ff83f313aae1539e72a7 /keyboards/handwired/tritium_numpad/tritium_numpad.c | |
parent | 1a2a54c326d0bb0dba899b3098487450d6d9dee6 (diff) | |
download | qmk_firmware-48b5903677b773940f1f92d9cb1bf278290fc075.tar.gz |
[Keyboard] Added 3d printable, handwired numpad by tritiumfusion (#6125)
* Added tritium_numpad
Adding tritium numpad handwired 6x4 numpad design from thingiverse
user tritiumfusion.
* Updated readme with more tritiumfusion information
* Changed spacing in readme
* Changed blu keymap
* Update keyboards/handwired/tritium_numpad/config.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/config.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/config.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/keymaps/max/keymap.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/tritium_numpad.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/tritium_numpad.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/tritium_numpad.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/keymaps/ortho_left/keymap.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/keymaps/ortho_right/keymap.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/tritium_numpad/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/handwired/tritium_numpad/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/handwired/tritium_numpad/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Removed action_function(), function_id, and MODS_CTRL_MASK
* Reformatted keymaps so that they look nicer. Removed hackey backslashes that were there for no reason whatsoever.
* Update keyboards/handwired/tritium_numpad/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Removed more backslashes
* Added bootmagic to tritium_numpad
Diffstat (limited to 'keyboards/handwired/tritium_numpad/tritium_numpad.c')
-rw-r--r-- | keyboards/handwired/tritium_numpad/tritium_numpad.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboards/handwired/tritium_numpad/tritium_numpad.c b/keyboards/handwired/tritium_numpad/tritium_numpad.c new file mode 100644 index 000000000..7193a934d --- /dev/null +++ b/keyboards/handwired/tritium_numpad/tritium_numpad.c @@ -0,0 +1,29 @@ +#include "tritium_numpad.h" +#include "led.h" + +void keyboard_pre_init_kb(void) { + // put your keyboard start-up code here + // runs once when the firmware starts up + keyboard_pre_init_user(); + led_init_ports(); +}; + +void matrix_scan_kb(void) { + // put your looping keyboard code here + // runs every cycle (a lot) + matrix_scan_user(); +}; + +void led_init_ports(void) { + // * Set our LED pins as output + // Numlock LED + setPinOutput(D5); +} + +void led_set_kb(uint8_t usb_led) { + if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { + writePinLow(D5); + } else { + writePinHigh(D5); + } +} |