2021-09-01 09:03:14 +00:00
|
|
|
#pragma once
|
2018-07-18 16:54:49 +00:00
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
#include "matrix.h"
|
|
|
|
#include <avr/sfr_defs.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
void reset_keyboard_kb(void);
|
|
|
|
|
2018-08-21 15:40:25 +00:00
|
|
|
// readability
|
|
|
|
#define ___ KC_NO
|
|
|
|
|
2018-07-18 16:54:49 +00:00
|
|
|
/* All Keymap - contains every possible switch
|
|
|
|
* ,-------------------------------------------------------------------------------.
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 0B | 0C | 0D | 0E | 0F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 10 | 11 |12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 1A | 1B | 1C | 1E | 1F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 2A | 2B | 2C | 2E | 2F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 30 |31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 3A | 3B | 3C | 3E | 3F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 40 | 41 | 42 | 46 | 4A | 4B | 4C | 4D | 2D | 3D |
|
2018-07-18 16:54:49 +00:00
|
|
|
* `-------------------------------------------------------------------------------'
|
|
|
|
*/
|
|
|
|
// The first section contains all of the arguements
|
|
|
|
// The second converts the arguments into a two-dimensional array
|
|
|
|
#define LAYOUT_all( \
|
2021-09-01 09:03:14 +00:00
|
|
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, k0F, \
|
|
|
|
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1E, k1F, \
|
|
|
|
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2E, k2F, \
|
|
|
|
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3E, k3F, \
|
|
|
|
k40, k41, k42, k46, k4A, k4B, k4C, k4D, k2D, k3D \
|
2018-07-18 16:54:49 +00:00
|
|
|
) { \
|
2021-09-01 09:03:14 +00:00
|
|
|
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, k0F }, \
|
|
|
|
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, ___, k1E, k1F }, \
|
|
|
|
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D, k2E, k2F }, \
|
|
|
|
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E, k3F }, \
|
|
|
|
{ k40, k41, k42, ___, ___, ___, k46, ___, ___, ___, k4A, k4B, k4C, k4D, ___, ___ } \
|
2018-07-18 16:54:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ANSI Keymap
|
|
|
|
* ,-------------------------------------------------------------------------------.
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 0B | 0C | 0E | 0F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 10 | 11 |12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 1A | 1B | 1C | 1E | 1F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 20 | 21 |22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 2A | 2B | 2E | 2F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 30 | 32 |33 | 34 | 35 | 36 | 37 | 38 | 39 | 3A | 3B | 3C | 3E | 3F |
|
2018-07-18 16:54:49 +00:00
|
|
|
* |-------------------------------------------------------------------------------|
|
2021-09-01 09:03:14 +00:00
|
|
|
* | 40 | 41 | 42 | 46 | 4A | 4B | 4C | 4D | 2D | 3D |
|
2018-07-18 16:54:49 +00:00
|
|
|
* `-------------------------------------------------------------------------------'
|
|
|
|
*/
|
|
|
|
#define LAYOUT_ansi( \
|
2021-09-01 09:03:14 +00:00
|
|
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0E, k0F, \
|
|
|
|
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1E, k1F, \
|
|
|
|
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2E, k2F, \
|
|
|
|
k30, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3E, k3F, \
|
|
|
|
k40, k41, k42, k46, k4A, k4B, k4C, k4D, k2D, k3D \
|
2018-07-18 16:54:49 +00:00
|
|
|
) { \
|
2021-09-01 09:03:14 +00:00
|
|
|
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, ___, k0E, k0F }, \
|
|
|
|
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, ___, k1E, k1F }, \
|
|
|
|
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, ___, k2D, k2E, k2F }, \
|
|
|
|
{ k30, ___, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E, k3F }, \
|
|
|
|
{ k40, k41, k42, ___, ___, ___, k46, ___, ___, ___, k4A, k4B, k4C, k4D, ___, ___ } \
|
2018-07-18 16:54:49 +00:00
|
|
|
}
|