config.h
1456 bytes
1/*
2Copyright 2021 Salicylic_Acid
3Copyright 2021 3araht
4Copyright 2022 jun10000
5
6This program is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
22
23
24/* key matrix size */
25#define MATRIX_ROWS 10
26#define MATRIX_COLS 8
27
28// wiring of each half
29#define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 }
30#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, E6 }
31
32#ifndef IOS_DEVICE_ENABLE
33 #define RGBLIGHT_LIMIT_VAL 90
34 #define RGBLIGHT_VAL_STEP 17
35#else
36 #define RGBLIGHT_LIMIT_VAL 30
37 #define RGBLIGHT_VAL_STEP 4
38#endif
39
40#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
41// USB_MAX_POWER_CONSUMPTION value for naked48 keyboard
42// 120 RGBoff, OLEDoff
43// 120 OLED
44// 330 RGB 6
45// 300 RGB 32
46// 310 OLED & RGB 32
47 #define USB_MAX_POWER_CONSUMPTION 400
48#else
49 // fix iPhone and iPad power adapter issue
50 // iOS device need lessthan 100
51 #define USB_MAX_POWER_CONSUMPTION 100
52#endif