Repository navigation
Expand file tree
/
Copy pathconfig.h
More file actions
59 lines (47 loc) · 1.29 KB
/
Copy pathconfig.h
File metadata and controls
59 lines (47 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* config.h
*
*/
#pragma once
#define VENDOR_ID 0x4543 // EC
#define PRODUCT_ID 0x4D45 // ME
#define DEVICE_VER 0x0001
#define MANUFACTURER astro
#define PRODUCT ME EC
#define MATRIX_ROWS 6
#define MATRIX_COLS 16
#define MATRIX_ROW_PINS {}
#define MATRIX_COL_PINS {}
#define ROW_6_PIN B6
#define ROW_1_PIN B5
#define ROW_2_PIN B4
#define ROW_3_PIN A15
#define ROW_4_PIN B15
#define ROW_5_PIN B1
#define LEFT_EN_PIN B10
#define RIGHT_EN_PIN B2
#define COL_A_PIN B14
#define COL_B_PIN B13
#define COL_C_PIN B12
#define OPA_EN_PIN A5
#define DISCHARGE_PIN A6
#define KEY_IN_CHANNEL ADC_CHANNEL_2
#define KEY_IN_PIN GPIO_PIN_2
#define KEY_IN_PORT GPIOA
#define SENSE_TH 1024
#define CAPS_LED_PIN A8
#define WS2812_LED_NUM 4
#define WS2812_LED_PIN B7
#define USE_PWM_TIM4
#define PWM_TIM_PERIOD 119
#define PWM_TIM htim4
#define PWM_TIM_CHANNEL TIM_CHANNEL_2
#define RGB_LED_NUM (4+12)
#define RGB_DEVICE_NUM 2
#define RGB_SEGMENT_NUM 2
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 0
#define VECT_TAB_OFFSET 0x20000
#define USE_ADC1
#define USE_I2C1
//#define WS2812_USE_GPIO