Rename track pin
This commit is contained in:
@@ -37,10 +37,10 @@
|
|||||||
#define BOARD_SPI_SCK 40
|
#define BOARD_SPI_SCK 40
|
||||||
|
|
||||||
#define BOARD_BOOT 0
|
#define BOARD_BOOT 0
|
||||||
#define BOARD_TBOX_UP 3
|
#define BOARD_TBOX_G02 3
|
||||||
#define BOARD_TBOX_DOWN 2
|
#define BOARD_TBOX_G01 2
|
||||||
#define BOARD_TBOX_LEFT 1
|
#define BOARD_TBOX_G04 1
|
||||||
#define BOARD_TBOX_RIGHT 15
|
#define BOARD_TBOX_G03 15
|
||||||
|
|
||||||
#define BOARD_ES7210_MCLK 48
|
#define BOARD_ES7210_MCLK 48
|
||||||
#define BOARD_ES7210_LRCK 21
|
#define BOARD_ES7210_LRCK 21
|
||||||
|
|||||||
@@ -37,10 +37,10 @@
|
|||||||
#define BOARD_SPI_SCK 40
|
#define BOARD_SPI_SCK 40
|
||||||
|
|
||||||
#define BOARD_BOOT 0
|
#define BOARD_BOOT 0
|
||||||
#define BOARD_TBOX_UP 3
|
#define BOARD_TBOX_G02 3
|
||||||
#define BOARD_TBOX_DOWN 2
|
#define BOARD_TBOX_G01 2
|
||||||
#define BOARD_TBOX_LEFT 1
|
#define BOARD_TBOX_G04 1
|
||||||
#define BOARD_TBOX_RIGHT 15
|
#define BOARD_TBOX_G03 15
|
||||||
|
|
||||||
#define BOARD_ES7210_MCLK 48
|
#define BOARD_ES7210_MCLK 48
|
||||||
#define BOARD_ES7210_LRCK 21
|
#define BOARD_ES7210_LRCK 21
|
||||||
|
|||||||
@@ -570,10 +570,10 @@ void initBoard()
|
|||||||
SPI.begin(BOARD_SPI_SCK, BOARD_SPI_MISO, BOARD_SPI_MOSI); //SD
|
SPI.begin(BOARD_SPI_SCK, BOARD_SPI_MISO, BOARD_SPI_MOSI); //SD
|
||||||
|
|
||||||
pinMode(BOARD_BOOT_PIN, INPUT_PULLUP);
|
pinMode(BOARD_BOOT_PIN, INPUT_PULLUP);
|
||||||
pinMode(BOARD_TBOX_UP, INPUT_PULLUP);
|
pinMode(BOARD_TBOX_G02, INPUT_PULLUP);
|
||||||
pinMode(BOARD_TBOX_DOWN, INPUT_PULLUP);
|
pinMode(BOARD_TBOX_G01, INPUT_PULLUP);
|
||||||
pinMode(BOARD_TBOX_LEFT, INPUT_PULLUP);
|
pinMode(BOARD_TBOX_G04, INPUT_PULLUP);
|
||||||
pinMode(BOARD_TBOX_RIGHT, INPUT_PULLUP);
|
pinMode(BOARD_TBOX_G03, INPUT_PULLUP);
|
||||||
|
|
||||||
//Wakeup touch chip
|
//Wakeup touch chip
|
||||||
pinMode(BOARD_TOUCH_INT, OUTPUT);
|
pinMode(BOARD_TOUCH_INT, OUTPUT);
|
||||||
@@ -805,10 +805,10 @@ static void mouse_read(lv_indev_drv_t *indev, lv_indev_data_t *data)
|
|||||||
static int16_t last_x;
|
static int16_t last_x;
|
||||||
static int16_t last_y;
|
static int16_t last_y;
|
||||||
bool left_button_down = false;
|
bool left_button_down = false;
|
||||||
const uint8_t dir_pins[5] = {BOARD_TBOX_UP,
|
const uint8_t dir_pins[5] = {BOARD_TBOX_G02,
|
||||||
BOARD_TBOX_DOWN,
|
BOARD_TBOX_G01,
|
||||||
BOARD_TBOX_LEFT,
|
BOARD_TBOX_G04,
|
||||||
BOARD_TBOX_RIGHT,
|
BOARD_TBOX_G03,
|
||||||
BOARD_BOOT_PIN
|
BOARD_BOOT_PIN
|
||||||
};
|
};
|
||||||
static bool last_dir[5];
|
static bool last_dir[5];
|
||||||
|
|||||||
@@ -36,19 +36,19 @@
|
|||||||
#define BOARD_SPI_MISO 38
|
#define BOARD_SPI_MISO 38
|
||||||
#define BOARD_SPI_SCK 40
|
#define BOARD_SPI_SCK 40
|
||||||
|
|
||||||
#define BOARD_TBOX_UP 2
|
#define BOARD_TBOX_G02 2
|
||||||
#define BOARD_TBOX_DOWN 3
|
#define BOARD_TBOX_G01 3
|
||||||
#define BOARD_TBOX_LEFT 1
|
#define BOARD_TBOX_G04 1
|
||||||
#define BOARD_TBOX_RIGHT 15
|
#define BOARD_TBOX_G03 15
|
||||||
|
|
||||||
#define BOARD_ES7210_MCLK 48
|
#define BOARD_ES7210_MCLK 48
|
||||||
#define BOARD_ES7210_LRCK 21
|
#define BOARD_ES7210_LRCK 21
|
||||||
#define BOARD_ES7210_SCK 47
|
#define BOARD_ES7210_SCK 47
|
||||||
#define BOARD_ES7210_DIN 14
|
#define BOARD_ES7210_DIN 14
|
||||||
|
|
||||||
#define RADIO_BUSY_PIN 13
|
#define RADIO_BUSY_PIN 13
|
||||||
#define RADIO_RST_PIN 17
|
#define RADIO_RST_PIN 17
|
||||||
#define RADIO_DIO1_PIN 45
|
#define RADIO_DIO1_PIN 45
|
||||||
|
|
||||||
#define BOARD_BOOT_PIN 0
|
#define BOARD_BOOT_PIN 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user