qmk_firmware/layouts/community/ergodox/supercoder/keymap.c
Jack Humbert d2ff66a985 Creates a layouts/ folder for keymaps shared between keyboards (#1609)
* include variables and .h files as pp directives

* start layout compilation

* split ergodoxes up

* don't compile all layouts for everything

* might seg fault

* reset layouts variable

* actually reset layouts

* include rules.mk instead

* remove includes from rules.mk

* update variable setting

* load visualizer from path

* adds some more examples

* adds more layouts

* more boards added

* more boards added

* adds documentation for layouts

* use lowercase names for LAYOUT_

* add layout.json files for each layout

* add community folder, default keymaps for layouts

* touch-up default layouts

* touch-up layouts, some keyboard rules.mk

* update documentation for layouts

* fix up serial/i2c switches
2017-08-23 22:29:07 -04:00

76 lines
3.9 KiB
C

/*
* SuperCoder 2000 layout
*/
#include QMK_KEYBOARD_H
/* Layers */
#define SC2K 0 // default layer
/* The Keymap */
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap 0: Base Layer
*
* ,-----------------------------------------------------. ,-----------------------------------------------------.
* | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
* |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------|
* | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
* |-----------+------+------+------+------+------| | | |------+------+------+------+------+-----------|
* | 0 | 0 | 0 | 0 | 0 | 0 |------| |------| 1 | 1 | 1 | 1 | 1 | 1 |
* |-----------+------+------+------+------+------| 0 | | 1 |------+------+------+------+------+-----------|
* | 0 | 0 | 0 | 0 | 0 | 0 | | | | 1 | 1 | 1 | 1 | 1 | 1 |
* `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------'
* | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
* `-----------------------------------' `-----------------------------------'
* ,-------------. ,-------------.
* | DONE | DONE | | DONE | DONE |
* ,------|------|------| |------+------+------.
* | | | DONE | | DONE | | |
* | DONE | DONE |------| |------| DONE | DONE |
* | | | DONE | | DONE | | |
* `--------------------' `--------------------'
*/
[SC2K] = LAYOUT_ergodox(
// left hand
KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0
,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0
,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0
,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0
,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0
,KC_ENT ,KC_ENT
,KC_ENT
,KC_ENT ,KC_ENT ,KC_ENT
// right hand
,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1
,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1
,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1
,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1
,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1
,KC_ENT ,KC_ENT
,KC_ENT
,KC_ENT ,KC_ENT ,KC_ENT
),
};
const uint16_t PROGMEM fn_actions[] = {
};
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
return MACRO_NONE;
};
// Runs just one time when the keyboard initializes.
void matrix_init_user(void) {
};
// Runs constantly in the background, in a loop.
void matrix_scan_user(void) {
}