aboutsummaryrefslogtreecommitdiff
path: root/keyboards/cassette42/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/cassette42/config.h')
-rw-r--r--keyboards/cassette42/config.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/keyboards/cassette42/config.h b/keyboards/cassette42/config.h
new file mode 100644
index 000000000..1729c31fb
--- /dev/null
+++ b/keyboards/cassette42/config.h
@@ -0,0 +1,52 @@
1/*
2Copyright 2019 monksoffunk
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
18#pragma once
19
20#include "config_common.h"
21
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0xCA42
26#define DEVICE_VER 0x0001
27#define MANUFACTURER monksoffunk
28#define PRODUCT cassette42
29
30/* key matrix size */
31#define MATRIX_ROWS 1
32#define MATRIX_COLS 6
33
34#define DIRECT_PINS {{ B4, F6, F5, F4, B5, F7 }}
35#define UNUSED_PINS
36
37#define ENCODERS_PAD_A { B6, B3 }
38#define ENCODERS_PAD_B { B2, B1 }
39#define ENCODER_RESOLUTION 4
40
41#define RGB_DI_PIN D3
42#ifdef RGB_DI_PIN
43# define RGBLED_NUM 5
44# define RGBLIGHT_HUE_STEP 8
45# define RGBLIGHT_SAT_STEP 8
46# define RGBLIGHT_VAL_STEP 8
47# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
48# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
49# define RGBLIGHT_ANIMATIONS
50#endif
51
52#define OLED_FONT_H "keyboards/cassette42/common/glcdfont.c"