-
-
Notifications
You must be signed in to change notification settings - Fork 774
/
NamimnoRC_FLASH_2400_OLED_TX.h
49 lines (41 loc) · 1.35 KB
/
NamimnoRC_FLASH_2400_OLED_TX.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
#ifndef DEVICE_NAME
#define DEVICE_NAME "NM Flash OLED"
#endif
// Features
#define USE_TX_BACKPACK
#define USE_OLED_SPI
#define HAS_FIVE_WAY_BUTTON
#define WS2812_IS_GRB
// GPIO pin definitions
#define GPIO_PIN_RST 21
#define GPIO_PIN_BUSY 22
#define GPIO_PIN_DIO1 17
#define GPIO_PIN_DIO2 16
#define GPIO_PIN_NSS 5
#define GPIO_PIN_MOSI 23
#define GPIO_PIN_MISO 19
#define GPIO_PIN_SCK 18
// SKY65383-11 front end control
#define GPIO_PIN_RX_ENABLE 32 // CRX
#define GPIO_PIN_TX_ENABLE 33 // CTX
#define GPIO_PIN_PA_ENABLE 25 // CSD
/* OLED definition */
#define GPIO_PIN_OLED_CS 12
#define GPIO_PIN_OLED_RST 27
#define GPIO_PIN_OLED_DC 26
#define GPIO_PIN_OLED_MOSI 15
#define GPIO_PIN_OLED_SCK 14
/* Joystick definition */
#define GPIO_PIN_JOYSTICK 35
/* S.Port input signal */
#define GPIO_PIN_RCSIGNAL_RX 13
#define GPIO_PIN_RCSIGNAL_TX 13
#define GPIO_PIN_FAN_EN 2
/* WS2812 led */
#define GPIO_PIN_LED_WS2812 4
/* Output Power */
#define MinPower PWR_25mW
#define MaxPower PWR_1000mW
#define POWER_OUTPUT_VALUES {-18,-13,-10,-5,-2,3}
/* Joystick values {UP, DOWN, LEFT, RIGHT, ENTER, IDLE}*/
#define JOY_ADC_VALUES {1850, 900, 490, 1427, 0, 2978}