This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
2013-12-13 12:38:36 +00:00
|
|
|
#include "keymap_common.h"
|
|
|
|
|
|
|
|
// Keypad with Arrow
|
|
|
|
#ifdef KEYMAP_SECTION_ENABLE
|
|
|
|
const uint8_t keymaps[KEYMAPS_COUNT][MATRIX_ROWS][MATRIX_COLS] __attribute__ ((section (".keymap.keymaps"))) = {
|
|
|
|
#else
|
|
|
|
const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
|
|
|
|
#endif
|
|
|
|
/* Keymap 0: Default Layer
|
|
|
|
* ,---------------.
|
|
|
|
* |Num|/ |* |- |
|
|
|
|
* |---+---+---+---|
|
|
|
|
* |7 |8 |9 |+ |
|
|
|
|
* |---+---+---| |
|
|
|
|
* |4 |5 |6 | |
|
|
|
|
* |---+---+---+---|
|
|
|
|
* |1 |2 |3 |Ent|
|
|
|
|
* |---+---+---| |
|
|
|
|
* |0 |Up |. | |
|
|
|
|
* |---+---+---+---|
|
|
|
|
* |Lef|Dow|Rig|Fn0|
|
|
|
|
* `---------------'
|
|
|
|
*/
|
|
|
|
[0] = KEYMAP(
|
|
|
|
NLCK,PSLS,PAST,PMNS, \
|
|
|
|
P7, P8, P9, PPLS, \
|
|
|
|
P4, P5, P6, NO, \
|
|
|
|
P1, P2, P3, PENT, \
|
|
|
|
P0, UP, PDOT,NO, \
|
|
|
|
LEFT,DOWN,RGHT,FN0),
|
|
|
|
/* Keymap 1: */
|
|
|
|
[1] = KEYMAP(
|
|
|
|
TRNS,TRNS,TRNS,TRNS, \
|
|
|
|
TRNS,TRNS,TRNS,TRNS, \
|
|
|
|
TRNS,TRNS,TRNS,TRNS, \
|
|
|
|
TRNS,TRNS,TRNS,TRNS, \
|
|
|
|
TRNS,TRNS,TRNS,TRNS, \
|
2014-01-10 00:18:52 +00:00
|
|
|
FN1, TRNS,FN2, TRNS),
|
2013-12-13 12:38:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Fn action definition
|
|
|
|
*/
|
|
|
|
#ifdef KEYMAP_SECTION_ENABLE
|
|
|
|
const uint16_t fn_actions[FN_ACTIONS_COUNT] __attribute__ ((section (".keymap.fn_actions"))) = {
|
|
|
|
#else
|
|
|
|
const uint16_t fn_actions[] PROGMEM = {
|
|
|
|
#endif
|
2014-01-10 00:18:52 +00:00
|
|
|
[0] = ACTION_LAYER_MOMENTARY(1),
|
|
|
|
[1] = ACTION_BACKLIGHT_DECREASE(),
|
|
|
|
[2] = ACTION_BACKLIGHT_INCREASE()
|
2013-12-13 12:38:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef KEYMAP_EX_ENABLE
|
|
|
|
uint16_t keys_count(void) {
|
|
|
|
return sizeof(keymaps) / sizeof(keymaps[0]) * MATRIX_ROWS * MATRIX_COLS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t fn_actions_count(void) {
|
|
|
|
return sizeof(fn_actions) / sizeof(fn_actions[0]);
|
|
|
|
}
|
|
|
|
#endif
|