#ifndef _WATCHOS_HW_h #define _WATCHOS_HW_h ////////// // I2C #define HW_I2C_SDA 21 #define HW_I2C_SCL 22 ////////// // RTC // Pin // #define HW_RTC 27 #define HW_RTC GPIO_NUM_27 ////////// // Display // Controller pins // Chip select? #define HW_DISPLAY_CS 5 // Data/Command selector? #define HW_DISPLAY_DC 10 #define HW_DISPLAY_RESET 9 #define HW_DISPLAY_BUSY 19 #define DISPLAY_WIDTH 200 #define DISPLAY_HEIGHT 200 // Enable GFX library in display driver #define ENABLE_GxEPD2_GFX 1 ////////// // ADC / Battery #define HW_BATTERY_ADC_PIN 33 ////////// // Vibration Motor // Pin #define HW_VIBRATION_MOTOR 13 ////////// // Buttons // Pin assignments for buttons #define HW_BUTTON_TL 25 #define HW_BUTTON_TR 32 #define HW_BUTTON_BL 26 #define HW_BUTTON_BR 4 // Masks for wakeups #define HW_BUTTON_TL_MASK GPIO_SEL_25 #define HW_BUTTON_TR_MASK GPIO_SEL_32 #define HW_BUTTON_BL_MASK GPIO_SEL_26 #define HW_BUTTON_BR_MASK GPIO_SEL_4 // Combined mask for any button #define HW_BUTTON_MASK HW_BUTTON_TL_MASK|HW_BUTTON_TR_MASK|HW_BUTTON_BL_MASK|HW_BUTTON_BR_MASK #endif