40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include "driver/gpio.h"
|
|
#include "driver/spi_master.h"
|
|
#include "driver/i2c_master.h"
|
|
|
|
// Compatibility header for the Waveshare Arduino support files copied from
|
|
// their official 08_Audio_Test example.
|
|
|
|
#define EPD_SPI_NUM SPI2_HOST
|
|
#define ESP32_I2C_DEV_NUM I2C_NUM_0
|
|
|
|
#define EPD_WIDTH 200
|
|
#define EPD_HEIGHT 200
|
|
#define LVGL_SPIRAM_BUFF_LEN (EPD_WIDTH * EPD_HEIGHT * 2)
|
|
|
|
#define EPD_DC_PIN GPIO_NUM_10
|
|
#define EPD_CS_PIN GPIO_NUM_11
|
|
#define EPD_SCK_PIN GPIO_NUM_12
|
|
#define EPD_MOSI_PIN GPIO_NUM_13
|
|
#define EPD_RST_PIN GPIO_NUM_9
|
|
#define EPD_BUSY_PIN GPIO_NUM_8
|
|
|
|
#define EPD_PWR_PIN GPIO_NUM_6
|
|
#define Audio_PWR_PIN GPIO_NUM_42
|
|
#define VBAT_PWR_PIN GPIO_NUM_17
|
|
|
|
#define BOOT_BUTTON_PIN GPIO_NUM_0
|
|
#define PWR_BUTTON_PIN GPIO_NUM_18
|
|
|
|
#define ESP32_I2C_SDA_PIN GPIO_NUM_47
|
|
#define ESP32_I2C_SCL_PIN GPIO_NUM_48
|
|
|
|
#define EXAMPLE_LVGL_TICK_PERIOD_MS 5
|
|
#define EXAMPLE_LVGL_TASK_MAX_DELAY_MS 500
|
|
#define EXAMPLE_LVGL_TASK_MIN_DELAY_MS 20
|
|
|
|
#define I2C_RTC_DEV_Address 0x51
|
|
#define I2C_SHTC3_DEV_Address 0x70
|