aboutsummaryrefslogtreecommitdiff
path: root/keyboards/10bleoledhub/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/10bleoledhub/config.h')
-rw-r--r--keyboards/10bleoledhub/config.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/keyboards/10bleoledhub/config.h b/keyboards/10bleoledhub/config.h
new file mode 100644
index 000000000..d3e845fec
--- /dev/null
+++ b/keyboards/10bleoledhub/config.h
@@ -0,0 +1,50 @@
1/*
2Copyright 2020 haierwangwei2005
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.*/
16
17#pragma once
18
19#include "config_common.h"
20#define VENDOR_ID 0x7C88 // "hw" = haierwangwei2005
21#define PRODUCT_ID 0x7C99 // "10b" = 10bleoledhub
22#define DEVICE_VER 0x0001
23#define MANUFACTURER haierwangwei2005
24#define PRODUCT 10bleoledhub
25
26/* key matrix size */
27#define MATRIX_ROWS 4
28#define MATRIX_COLS 3
29#define MATRIX_ROW_PINS { F0, F5, F4, F6 }
30#define MATRIX_COL_PINS { D6, D7, B5 }
31#define UNUSED_PINS
32
33#define DIODE_DIRECTION ROW2COL
34
35#define SSD1306OLED
36#define RGB_DI_PIN B7
37
38#define RGBLED_NUM 4
39
40/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
41#define DEBOUNCE 5
42#define RGBLIGHT_ANIMATIONS
43
44
45#define OLED_FONT_H "./lib/glcdfont.c"
46
47#define ENCODERS_PAD_A { C7 }
48#define ENCODERS_PAD_B { F7 }
49
50#define ENCODER_RESOLUTION 4