aboutsummaryrefslogtreecommitdiff
path: root/keyboards/atreus/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/atreus/config.h')
-rw-r--r--keyboards/atreus/config.h57
1 files changed, 17 insertions, 40 deletions
diff --git a/keyboards/atreus/config.h b/keyboards/atreus/config.h
index b1559a29d..d18201443 100644
--- a/keyboards/atreus/config.h
+++ b/keyboards/atreus/config.h
@@ -1,22 +1,20 @@
1/* 1/* Copyright 2019
2Copyright 2012 Jun Wako <wakojun@gmail.com> 2 *
3 3 * This program is free software: you can redistribute it and/or modify
4This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by
5it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or
6the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version.
7(at your option) any later version. 7 *
8 8 * This program is distributed in the hope that it will be useful,
9This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details.
12GNU General Public License for more details. 12 *
13 13 * You should have received a copy of the GNU General Public License
14You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */
16*/
17 16
18#ifndef CONFIG_H 17#pragma once
19#define CONFIG_H
20 18
21#include "config_common.h" 19#include "config_common.h"
22 20
@@ -27,31 +25,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
27#define DEVICE_VER 0x0008 25#define DEVICE_VER 0x0008
28#define MANUFACTURER Technomancy 26#define MANUFACTURER Technomancy
29#define PRODUCT Atreus 27#define PRODUCT Atreus
30#define DESCRIPTION q.m.k. keyboard firmware for Atreus 28#define DESCRIPTION QMK keyboard firmware for Atreus
31 29
32/* key matrix size */ 30/* key matrix size */
33#define MATRIX_ROWS 4 31#define MATRIX_ROWS 4
34#define MATRIX_COLS 11 32#define MATRIX_COLS 11
35 33
36// Change this to how you wired your keyboard
37// COLS: Left to right, ROWS: Top to bottom
38#if defined(ATREUS_ASTAR)
39# define MATRIX_ROW_PINS { D0, D1, D3, D2 }
40#if defined(PCBDOWN)
41# define MATRIX_COL_PINS { B7, D6, F7, F6, B6, D4, E6, B4, B5, C6, D7 }
42#else
43# define MATRIX_COL_PINS { D7, C6, B5, B4, E6, D4, B6, F6, F7, D6, B7 }
44#endif
45# define UNUSED_PINS
46#elif defined(ATREUS_TEENSY2)
47# define MATRIX_ROW_PINS { D0, D1, D2, D3 }
48# define MATRIX_COL_PINS { F6, F5, F4, B7, B6, B5, B4, B3, B2, B1, B0 }
49# define UNUSED_PINS
50#endif
51
52/* COL2ROW or ROW2COL */
53#define DIODE_DIRECTION COL2ROW
54
55/* define if matrix has ghost */ 34/* define if matrix has ghost */
56//#define MATRIX_HAS_GHOST 35//#define MATRIX_HAS_GHOST
57 36
@@ -83,5 +62,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
83//#define NO_ACTION_ONESHOT 62//#define NO_ACTION_ONESHOT
84//#define NO_ACTION_MACRO 63//#define NO_ACTION_MACRO
85//#define NO_ACTION_FUNCTION 64//#define NO_ACTION_FUNCTION
86
87#endif