2021-09-01 11:03:14 +02:00
|
|
|
#pragma once
|
2016-06-02 03:41:51 +02:00
|
|
|
|
2016-06-24 04:18:20 +02:00
|
|
|
#include "quantum.h"
|
2016-06-02 03:41:51 +02:00
|
|
|
#include "matrix.h"
|
2016-06-18 20:30:24 +02:00
|
|
|
#include "keymap.h"
|
2016-06-02 03:41:51 +02:00
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
|
#include "backlight.h"
|
|
|
|
#endif
|
|
|
|
#include <avr/io.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2021-09-01 11:03:14 +02:00
|
|
|
#define XXX KC_NO
|
|
|
|
|
2018-11-27 05:57:15 +01:00
|
|
|
// This is the 21-key keypad to 4x6 element matrix mapping
|
|
|
|
#define LAYOUT( \
|
2021-09-01 11:03:14 +02:00
|
|
|
k00, k01, k02, k03, \
|
|
|
|
k10, k11, k12, k13, \
|
|
|
|
k20, k21, k22, k23, \
|
|
|
|
k30, k31, k32, k33, \
|
|
|
|
k40, k41, k42, k43, \
|
|
|
|
k50, k51, k52, k53 \
|
2018-11-27 05:57:15 +01:00
|
|
|
) { \
|
2021-09-01 11:03:14 +02:00
|
|
|
{ k00, k01, k02, k03 }, \
|
|
|
|
{ k10, k11, k12, k13 }, \
|
|
|
|
{ k20, k21, k22, k23 }, \
|
|
|
|
{ k30, k31, k32, k33 }, \
|
|
|
|
{ k40, k41, k42, k43 }, \
|
|
|
|
{ k50, k51, k52, k53 } \
|
2018-11-27 05:57:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// This is the 21-key keypad to 2x11 element matrix mapping
|
|
|
|
#define LAYOUT_pad21( \
|
2021-09-01 11:03:14 +02:00
|
|
|
k00, k01, k02, k03, \
|
|
|
|
k10, k11, k12, k13, \
|
|
|
|
k04, k05, k06, \
|
|
|
|
k14, k15, k16, k07, \
|
|
|
|
k08, k09, k0A, \
|
|
|
|
k19, k1A, k17 \
|
2018-11-27 05:57:15 +01:00
|
|
|
) { \
|
2021-09-01 11:03:14 +02:00
|
|
|
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A }, \
|
|
|
|
{ k10, k11, k12, k13, k14, k15, k16, k17, XXX, k19, k1A } \
|
2018-11-27 05:57:15 +01:00
|
|
|
}
|