// s3_puck_pins.h
// Pin map for the Waveshare ESP32-S3-Touch-LCD-1.28 (round 240x240 "puck").
// Keep this file in the same folder as desk-buddy.ino.
#pragma once

// ---- Round LCD (GC9A01, SPI) ----
#define PIN_LCD_SCLK   10
#define PIN_LCD_MOSI   11
#define PIN_LCD_MISO   12
#define PIN_LCD_CS      9
#define PIN_LCD_DC      8
#define PIN_LCD_RST    14
#define PIN_LCD_BL      2   // backlight, PWM for brightness

// ---- Shared I2C bus (touch + motion sensor) ----
#define PIN_I2C_SDA     6
#define PIN_I2C_SCL     7

// ---- Touch (CST816S) ----
#define PIN_TP_INT      5
#define PIN_TP_RST     13
#define TOUCH_ADDR   0x15

// ---- Motion sensor (QMI8658 accelerometer + gyro) ----
#define PIN_IMU_INT1    4
#define PIN_IMU_INT2    3
#define IMU_ADDR     0x6B   // the code also tries 0x6A

// ---- Battery sense (200k/100k divider) ----
#define PIN_BAT_ADC     1
