-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.h
76 lines (58 loc) · 1.95 KB
/
config.h
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#pragma once
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U
#define BOOTMAGIC_LITE_ROW 3
#define BOOTMAGIC_LITE_COLUMN 7
/* key matrix size */
/* Rows are doubled up */
#define MATRIX_ROWS 7
#define MATRIX_COLS 8
// SHIFT REGISTER
// Only needed for matrix_74hc595_spi.c
#define SHIFTREG_MATRIX_COL_CS GP9
#define SHIFTREG_DIVISOR 8 // needs to be the same as the PMW33XX_CS_DIVISOR below
#define MATRIX_ROW_PINS_SR {GP4, GP5, GP6, GP7, GP8, GP21, GP15}
#define I2C_DRIVER I2CD1
// SPI config for shift register (and trackball if enabled)
#define SPI_DRIVER SPID0
#define SPI_SCK_PIN GP22
#define SPI_MOSI_PIN GP23
#define SPI_MISO_PIN GP20
#define ENCODERS_PAD_A {GP29}
#define ENCODERS_PAD_B {GP28}
#define ENCODER_RESOLUTION 1
#define PMW33XX_CS_PIN GP1
#define PMW33XX_CPI 1200
#define PMW33XX_CS_DIVISOR 8 // needs to be the same as the SHIFTREG_DIVISOR above
// #define POINTING_DEVICE_INVERT_Y
#define POINTING_DEVICE_INVERT_X
// #define DISPLAY_DC_PIN GP14
// #define DISPLAY_CS_PIN GP26
// #define DISPLAY_RST_PIN GP12
#define LCD_DC_PIN GP14
#define LCD_CS_PIN GP26
#define LCD_RST_PIN GP12
// #define LCD_POWER_ENABLE_PIN GP13
#define QUANTUM_PAINTER_CONCURRENT_ANIMATIONS 8
#define QUANTUM_PAINTER_LOAD_FONTS_TO_RAM TRUE
#define QUANTUM_PAINTER_NUM_IMAGES 14
#define QUANTUM_PAINTER_SUPPORTS_256_PALETTE TRUE
#define QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE 128
// #define LCD_ACTIVITY_TIMEOUT 30000
#define FB_ERM_LRA 1
#define FB_BRAKEFACTOR 3 // For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7
#define FB_LOOPGAIN 1 // For Low:0, Medium:1, High:2, Very High:3
#define RATED_VOLTAGE 2
#define V_PEAK 2.8
#define V_RMS 2.0
#define F_LRA 150 // resonance freq
#define DRV_GREETING alert_750ms
#ifdef RGB_MATRIX_ENABLE
#ifdef MCU_HELIOS
#define RGB_DI_PIN GP25
#else
#define RGB_DI_PIN GP27
#endif
#define DRIVER_LED_TOTAL 43
#define RGB_MATRIX_LED_COUNT 43
#endif // defined(RGB_MATRIX_ENABLE)