|
|
|
//#define DEBUG_SERIAL false
|
|
|
|
#ifndef KEYBOARD_CONFIG_H
|
|
|
|
#define KEYBOARD_CONFIG_H
|
|
|
|
|
|
|
|
#include "WS2812.h"
|
|
|
|
#define EEPROM_KEYMAP_LOCATION 0
|
|
|
|
|
|
|
|
#define MODEL01 true
|
|
|
|
|
|
|
|
#ifdef SYMMETRIC60
|
|
|
|
#define ROWS 5
|
|
|
|
#define COLS 14
|
|
|
|
static const byte colPins[COLS] = {
|
|
|
|
A0, 3,13, 5, 10, 9, 8, 6, 12, 4, 11, 1, 0, 2 };
|
|
|
|
|
|
|
|
static const byte rowPins[ROWS] = { A5,A4,A3,A2,A1};
|
|
|
|
#define LED_DATA_PIN 7
|
|
|
|
#define LED_COUNT 0
|
|
|
|
static const int key_led_map[ROWS][COLS] = {};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MODEL01
|
|
|
|
|
|
|
|
|
|
|
|
int RIGHT_COLS=8;
|
|
|
|
int RIGHT_ROWS=4;
|
|
|
|
|
|
|
|
|
|
|
|
int LEFT_COLS=8;
|
|
|
|
int LEFT_ROWS=4;
|
|
|
|
int left_colpins[]={7,6,5,4,3,2,1,0};
|
|
|
|
int left_rowpins[]={8,9,10,11};
|
|
|
|
|
|
|
|
int right_colpins[]={0,1,2,3,4,5,6,7};
|
|
|
|
int right_rowpins[]={8,9,10,11};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define COLS 16
|
|
|
|
#define ROWS 4
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if we're sticking to boot protocol, these could all be 6 + mods
|
|
|
|
// but *mumble*
|
|
|
|
|
|
|
|
#define KEYS_HELD_BUFFER 12
|
|
|
|
|
|
|
|
#endif
|