* 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 <[email protected]> * Switch to image offsite * Moved image offsite * Update keyboards/handwired/2x5keypad/keymaps/default/keymap.h Co-Authored-By: fauxpark <[email protected]> * Update keyboards/handwired/2x5keypad/2x5keypad.h Co-Authored-By: fauxpark <[email protected]> * Moved functions into .c file per suggestions * Cosmetic * Fixed function called, per suggestions. * Update keyboards/handwired/2x5keypad/2x5keypad.h Ok Co-Authored-By: fauxpark <[email protected]> * 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 <[email protected]>
26 lines
333 B
C
26 lines
333 B
C
#include "2x5keypad.h"
|
|
|
|
|
|
void matrix_init_kb(void)
|
|
{
|
|
matrix_init_user();
|
|
|
|
setPinOutput(RED_LED);
|
|
setPinOutput(BLUE_LED);
|
|
setPinOutput(GREEN_LED);
|
|
}
|
|
|
|
|
|
|
|
void turn_off_leds(void)
|
|
{
|
|
writePinLow(RED_LED);
|
|
writePinLow(BLUE_LED);
|
|
writePinLow(GREEN_LED);
|
|
}
|
|
|
|
void turn_on_led(pin_t pin)
|
|
{
|
|
writePinHigh(pin);
|
|
}
|