diff options
author | Jonathan Cameron <jmcameron@gmail.com> | 2019-09-09 22:03:33 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-09-09 22:03:33 -0700 |
commit | 2e521b509ce0c853b2e62d1d16e0117b900ab9c2 (patch) | |
tree | c795ea9e11322edaebdd7cde506fb6014cebb8cf /keyboards/handwired/2x5keypad/2x5keypad.h | |
parent | 00225b77e54fdc893f6c64768e1bffaa01df5849 (diff) | |
download | firmware-2e521b509ce0c853b2e62d1d16e0117b900ab9c2.tar.gz firmware-2e521b509ce0c853b2e62d1d16e0117b900ab9c2.tar.bz2 firmware-2e521b509ce0c853b2e62d1d16e0117b900ab9c2.zip |
[Keyboard] Added a simple 2x5 Keypad with 4 layers (#6699)
* Added new 2x5 Keypad with 3 LEDs to indicate the selected layer. By Jonathan Cameron.
* Minor refactor from suggestions from qmk team
* Added
* Moved to 'handwired' directory
* Update readme.md
* Update readme.md
* Update readme.md
* Update keyboards/handwired/2x5keypad/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Switch to image offsite
* Moved image offsite
* Update keyboards/handwired/2x5keypad/keymaps/default/keymap.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/handwired/2x5keypad/2x5keypad.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Moved functions into .c file per suggestions
* Cosmetic
* Fixed function called, per suggestions.
* Update keyboards/handwired/2x5keypad/2x5keypad.h
Ok
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Moved LED functions to the top level since they can be used it various flavors
* Declare those moved LED functions!
* Update keyboards/handwired/2x5keypad/config.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/handwired/2x5keypad/2x5keypad.h')
-rw-r--r-- | keyboards/handwired/2x5keypad/2x5keypad.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/keyboards/handwired/2x5keypad/2x5keypad.h b/keyboards/handwired/2x5keypad/2x5keypad.h new file mode 100644 index 000000000..6284e83b7 --- /dev/null +++ b/keyboards/handwired/2x5keypad/2x5keypad.h @@ -0,0 +1,21 @@ +#pragma once + +#include "quantum.h" + +#define RED_LED D0 +#define BLUE_LED B5 +#define GREEN_LED B6 + + +#define LAYOUT( \ + K00, K01, K02, K03, K04, \ + K10, K11, K12, K13, K14 \ +) { \ + { K00, K01, K02, K03, K04 }, \ + { K10, K11, K12, K13, K14 } \ +} + + + +void turn_off_leds(void); +void turn_on_led(pin_t pin); |