Merge branch '2.0.x-maintenance' into master-merge-commit
[ExpressLRS.git] / src / include / target / NamimnoRC_FLASH_2400_OLED_TX.h
blob2bd8c097980f0e5fde079bab34c33b1fdd7e0e2a
1 #ifndef DEVICE_NAME
2 #define DEVICE_NAME "NM Flash OLED"
3 #endif
5 // Features
6 #define USE_TX_BACKPACK
7 #define USE_OLED_SPI
8 #define HAS_FIVE_WAY_BUTTON
10 // GPIO pin definitions
11 #define GPIO_PIN_RST 21
12 #define GPIO_PIN_BUSY 22
13 #define GPIO_PIN_DIO1 17
14 #define GPIO_PIN_DIO2 16
15 #define GPIO_PIN_NSS 5
16 #define GPIO_PIN_MOSI 23
17 #define GPIO_PIN_MISO 19
18 #define GPIO_PIN_SCK 18
19 // SKY65383-11 front end control
20 #define GPIO_PIN_RX_ENABLE 32 // CRX
21 #define GPIO_PIN_TX_ENABLE 33 // CTX
22 #define GPIO_PIN_PA_ENABLE 25 // CSD
24 /* OLED definition */
25 #define GPIO_PIN_OLED_CS 12
26 #define GPIO_PIN_OLED_RST 27
27 #define GPIO_PIN_OLED_DC 26
28 #define GPIO_PIN_OLED_MOSI 15
29 #define GPIO_PIN_OLED_SCK 14
31 /* Joystick definition */
32 #define GPIO_PIN_JOYSTICK 35
34 /* S.Port input signal */
35 #define GPIO_PIN_RCSIGNAL_RX 13
36 #define GPIO_PIN_RCSIGNAL_TX 13
37 #define GPIO_PIN_FAN_EN 2
39 /* Backpack logger connection */
40 #define GPIO_PIN_DEBUG_RX 3
41 #define GPIO_PIN_DEBUG_TX 1
43 /* WS2812 led */
44 #define GPIO_PIN_LED_WS2812 4
46 /* Output Power */
47 #define MinPower PWR_25mW
48 #define MaxPower PWR_1000mW
49 #define POWER_OUTPUT_VALUES {-18,-13,-10,-5,-2,3}
51 /* Joystick values {UP, DOWN, LEFT, RIGHT, ENTER, IDLE}*/
52 #define JOY_ADC_VALUES {1850, 900, 490, 1427, 0, 2978}
54 /* Frequency */
55 #define Regulatory_Domain_ISM_2400 1