|
| 1 | +#ifndef _BOARD_CONFIG_H_ |
| 2 | +#define _BOARD_CONFIG_H_ |
| 3 | + |
| 4 | +#include <driver/gpio.h> |
| 5 | +#include <driver/spi_master.h> |
| 6 | +#include "lvgl.h" |
| 7 | + |
| 8 | +#define AUDIO_INPUT_SAMPLE_RATE 24000 |
| 9 | +#define AUDIO_OUTPUT_SAMPLE_RATE 24000 |
| 10 | + |
| 11 | +#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_44 |
| 12 | +#define AUDIO_I2S_GPIO_WS GPIO_NUM_15 |
| 13 | +#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_13 |
| 14 | +#define AUDIO_I2S_GPIO_DIN GPIO_NUM_14 |
| 15 | +#define AUDIO_I2S_GPIO_DOUT GPIO_NUM_16 |
| 16 | + |
| 17 | +#define AUDIO_CODEC_PA_PIN GPIO_NUM_NC |
| 18 | +#define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_8 |
| 19 | +#define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_7 |
| 20 | +#define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR |
| 21 | + |
| 22 | +#define BUILTIN_LED_GPIO GPIO_NUM_NC |
| 23 | +#define BOOT_BUTTON_GPIO GPIO_NUM_0 |
| 24 | +#define VOLUME_UP_BUTTON_GPIO GPIO_NUM_NC |
| 25 | +#define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC |
| 26 | + |
| 27 | +#define DISPLAY_SPI_MODE 0 |
| 28 | +#define DISPLAY_CS_PIN GPIO_NUM_12 |
| 29 | +#define DISPLAY_CLK_PIN GPIO_NUM_5 |
| 30 | +#define DISPLAY_DATA0_PIN GPIO_NUM_1 |
| 31 | +#define DISPLAY_DATA1_PIN GPIO_NUM_2 |
| 32 | +#define DISPLAY_DATA2_PIN GPIO_NUM_3 |
| 33 | +#define DISPLAY_DATA3_PIN GPIO_NUM_4 |
| 34 | + |
| 35 | +#define DISPLAY_RST_PIN GPIO_NUM_NC |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +#define DISPLAY_WIDTH 480 |
| 40 | +#define DISPLAY_HEIGHT 320 |
| 41 | +#define DISPLAY_TRANS_SIZE (DISPLAY_WIDTH * 10) |
| 42 | + |
| 43 | +#define DISPLAY_MIRROR_X false |
| 44 | +#define DISPLAY_MIRROR_Y false |
| 45 | +#define DISPLAY_SWAP_XY false |
| 46 | +#define DISPLAY_RGB_ORDER LCD_RGB_ELEMENT_ORDER_RGB |
| 47 | +#define DISPLAY_INVERT_COLOR false |
| 48 | + |
| 49 | +#define DISPLAY_OFFSET_X 0 |
| 50 | +#define DISPLAY_OFFSET_Y 0 |
| 51 | + |
| 52 | +#define LV_DISPLAY_ROTATION LV_DISPLAY_ROTATION_90 |
| 53 | + |
| 54 | +#define DISPLAY_BACKLIGHT_PIN GPIO_NUM_6 |
| 55 | +#define DISPLAY_BACKLIGHT_OUTPUT_INVERT false |
| 56 | + |
| 57 | +#define PMIC_ENABLE 0 |
| 58 | +#define TOUCH_ENABLE 1 |
| 59 | + |
| 60 | +#define CAM_PIN_PWDN GPIO_NUM_NC |
| 61 | +#define CAM_PIN_RESET GPIO_NUM_NC |
| 62 | +#define CAM_PIN_VSYNC GPIO_NUM_17 |
| 63 | +#define CAM_PIN_HREF GPIO_NUM_18 |
| 64 | +#define CAM_PIN_PCLK GPIO_NUM_41 |
| 65 | +#define CAM_PIN_XCLK GPIO_NUM_38 |
| 66 | +#define CAM_PIN_SIOD GPIO_NUM_NC |
| 67 | +#define CAM_PIN_SIOC GPIO_NUM_NC |
| 68 | +#define CAM_PIN_D0 GPIO_NUM_45 |
| 69 | +#define CAM_PIN_D1 GPIO_NUM_47 |
| 70 | +#define CAM_PIN_D2 GPIO_NUM_48 |
| 71 | +#define CAM_PIN_D3 GPIO_NUM_46 |
| 72 | +#define CAM_PIN_D4 GPIO_NUM_42 |
| 73 | +#define CAM_PIN_D5 GPIO_NUM_40 |
| 74 | +#define CAM_PIN_D6 GPIO_NUM_39 |
| 75 | +#define CAM_PIN_D7 GPIO_NUM_21 |
| 76 | + |
| 77 | + |
| 78 | +#endif // _BOARD_CONFIG_H_ |
0 commit comments