diff --git a/examples/Microphone/utilities.h b/examples/Microphone/utilities.h index 213798c..2ad6ed4 100644 --- a/examples/Microphone/utilities.h +++ b/examples/Microphone/utilities.h @@ -37,10 +37,10 @@ #define BOARD_SPI_SCK 40 #define BOARD_BOOT 0 -#define BOARD_TBOX_UP 3 -#define BOARD_TBOX_DOWN 2 -#define BOARD_TBOX_LEFT 1 -#define BOARD_TBOX_RIGHT 15 +#define BOARD_TBOX_G02 3 +#define BOARD_TBOX_G01 2 +#define BOARD_TBOX_G04 1 +#define BOARD_TBOX_G03 15 #define BOARD_ES7210_MCLK 48 #define BOARD_ES7210_LRCK 21 diff --git a/examples/Touchpad/utilities.h b/examples/Touchpad/utilities.h index 213798c..2ad6ed4 100644 --- a/examples/Touchpad/utilities.h +++ b/examples/Touchpad/utilities.h @@ -37,10 +37,10 @@ #define BOARD_SPI_SCK 40 #define BOARD_BOOT 0 -#define BOARD_TBOX_UP 3 -#define BOARD_TBOX_DOWN 2 -#define BOARD_TBOX_LEFT 1 -#define BOARD_TBOX_RIGHT 15 +#define BOARD_TBOX_G02 3 +#define BOARD_TBOX_G01 2 +#define BOARD_TBOX_G04 1 +#define BOARD_TBOX_G03 15 #define BOARD_ES7210_MCLK 48 #define BOARD_ES7210_LRCK 21 diff --git a/examples/UnitTest/UnitTest.ino b/examples/UnitTest/UnitTest.ino index c37d7ce..ac41d53 100644 --- a/examples/UnitTest/UnitTest.ino +++ b/examples/UnitTest/UnitTest.ino @@ -570,10 +570,10 @@ void initBoard() SPI.begin(BOARD_SPI_SCK, BOARD_SPI_MISO, BOARD_SPI_MOSI); //SD pinMode(BOARD_BOOT_PIN, INPUT_PULLUP); - pinMode(BOARD_TBOX_UP, INPUT_PULLUP); - pinMode(BOARD_TBOX_DOWN, INPUT_PULLUP); - pinMode(BOARD_TBOX_LEFT, INPUT_PULLUP); - pinMode(BOARD_TBOX_RIGHT, INPUT_PULLUP); + pinMode(BOARD_TBOX_G02, INPUT_PULLUP); + pinMode(BOARD_TBOX_G01, INPUT_PULLUP); + pinMode(BOARD_TBOX_G04, INPUT_PULLUP); + pinMode(BOARD_TBOX_G03, INPUT_PULLUP); //Wakeup touch chip 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_y; bool left_button_down = false; - const uint8_t dir_pins[5] = {BOARD_TBOX_UP, - BOARD_TBOX_DOWN, - BOARD_TBOX_LEFT, - BOARD_TBOX_RIGHT, + const uint8_t dir_pins[5] = {BOARD_TBOX_G02, + BOARD_TBOX_G01, + BOARD_TBOX_G04, + BOARD_TBOX_G03, BOARD_BOOT_PIN }; static bool last_dir[5]; diff --git a/examples/UnitTest/utilities.h b/examples/UnitTest/utilities.h index 27b0344..de79d6a 100644 --- a/examples/UnitTest/utilities.h +++ b/examples/UnitTest/utilities.h @@ -36,19 +36,19 @@ #define BOARD_SPI_MISO 38 #define BOARD_SPI_SCK 40 -#define BOARD_TBOX_UP 2 -#define BOARD_TBOX_DOWN 3 -#define BOARD_TBOX_LEFT 1 -#define BOARD_TBOX_RIGHT 15 +#define BOARD_TBOX_G02 2 +#define BOARD_TBOX_G01 3 +#define BOARD_TBOX_G04 1 +#define BOARD_TBOX_G03 15 #define BOARD_ES7210_MCLK 48 #define BOARD_ES7210_LRCK 21 #define BOARD_ES7210_SCK 47 #define BOARD_ES7210_DIN 14 -#define RADIO_BUSY_PIN 13 -#define RADIO_RST_PIN 17 -#define RADIO_DIO1_PIN 45 +#define RADIO_BUSY_PIN 13 +#define RADIO_RST_PIN 17 +#define RADIO_DIO1_PIN 45 #define BOARD_BOOT_PIN 0