#pragma once
// Waveshare ESP32-S3-Touch-LCD-1.28 (Amazon B0CM68M8LR)

static const int S3_LCD_SIZE = 240;
static const int S3_LCD_BL_PIN = 2;
static const int S3_LCD_DC_PIN = 8;
static const int S3_LCD_CS_PIN = 9;
static const int S3_LCD_CLK_PIN = 10;
static const int S3_LCD_MOSI_PIN = 11;
static const int S3_LCD_MISO_PIN = 12;
static const int S3_LCD_RST_PIN = 14;
static const int S3_I2C_SDA_PIN = 6;
static const int S3_I2C_SCL_PIN = 7;
static const int S3_TP_RST_PIN = 13;
static const int S3_TP_INT_PIN = 5;
static const int S3_QMI_INT1_PIN = 4;
static const int S3_QMI_INT2_PIN = 3;
static const int S3_BAT_ADC_PIN = 1;

static const uint8_t S3_CST816S_ADDR = 0x15;
static const uint8_t S3_QMI_ID = 0x05;
static const uint8_t S3_QMI_WHO_AM_I = 0x00;
static const uint8_t S3_QMI_CTRL1 = 0x02;
static const uint8_t S3_QMI_CTRL2 = 0x03;
static const uint8_t S3_QMI_CTRL3 = 0x04;
static const uint8_t S3_QMI_CTRL7 = 0x08;
static const uint8_t S3_QMI_AX_L = 0x35;
static const float S3_ACCEL_LSB_PER_G = 4096.0f;
static const float S3_GYRO_LSB_PER_DPS = 128.0f;
