* preliminary io pin definitions * Update product link * Move to new variant structure and refactor inkHUD - Display does not work and SX1262 init fails on HT752-02 * update variant definitions * add EPD driver * fix lora, add v1/v2 variant targets * adapt pins for v1/v2 * alt button * add compile guards * use lilygo epd47 lib * workaround for INT ERR_NOT_FOUND * USE_EPD (e-ink parallel display) * use FastEPD driver * create screen * EInkParallelDisplay definition * setup screen * dispaly() implementation * enable touchscreen * rotate touch screen * refactor display buffer processing * provide local copy of TwoWire instance as the touch driver calls end() * use larger fonts * replace touch driver; enable debugging * replace touch driver; enable debugging * consider bitsremain == 0 * tryfix crash * fix button * update touch driver * set lora_cs pin * update touch driver and lib reference * add locks * limit Ghosting similar to EInkDynamicDisplay * workaround for FastEPD partial update bug (artifacts) * display() code cleanup * fix a few platformio definitions * more EPD display cleanup * set rotation * use FastEPD arduino I2C by default * touch rotation * update screen for EPD * increase swipe distance for larger screen * EPD UIRenderer * trunk fmt * further #ifdef USE_EPD * disable rotation which messes up w/h; more cleanup * switch off ghosting algo * releease build; V1 buttons * swap V1 buttons * rearrange USE_EINK/EPD macros, use large font * cleanup (revert modified files) * more cleanup * revert * revert file * revert file Removed redundant line continuation in preprocessor directives. * Temporary gate off PSRam calculations until we can fix them * move variant.cpp and update commit references * revert wrong merge * add earlyInitVariant() * initialize all port 0 pins (0-7) as outputs / HIGH --------- Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com> Co-authored-by: Jason P <applewiz@mac.com> Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
93 lines
1.8 KiB
C
93 lines
1.8 KiB
C
|
|
// Display (E-Ink) ED047TC1 - 8bit parallel
|
|
#define EPD_WIDTH 960
|
|
#define EPD_HEIGHT 540
|
|
|
|
#define CANNED_MESSAGE_MODULE_ENABLE 1
|
|
#define USE_VIRTUAL_KEYBOARD 1
|
|
|
|
#if defined(T5_S3_EPAPER_PRO_V1)
|
|
#define BOARD_BL_EN 40
|
|
#else
|
|
#define BOARD_BL_EN 11
|
|
#endif
|
|
|
|
#define I2C_SDA SDA
|
|
#define I2C_SCL SCL
|
|
|
|
#define HAS_TOUCHSCREEN 1
|
|
#define GT911_PIN_SDA SDA
|
|
#define GT911_PIN_SCL SCL
|
|
#if defined(T5_S3_EPAPER_PRO_V1)
|
|
#define GT911_PIN_INT 15
|
|
#define GT911_PIN_RST 41
|
|
#else
|
|
#define GT911_PIN_INT 3
|
|
#define GT911_PIN_RST 9
|
|
#endif
|
|
|
|
#define PCF85063_RTC 0x51
|
|
#define HAS_RTC 1
|
|
#define PCF85063_INT 2
|
|
|
|
#define USE_POWERSAVE
|
|
#define SLEEP_TIME 120
|
|
|
|
// GPS
|
|
#if !defined(T5_S3_EPAPER_PRO_V1)
|
|
#define GPS_RX_PIN 44
|
|
#define GPS_TX_PIN 43
|
|
#endif
|
|
|
|
#if defined(T5_S3_EPAPER_PRO_V1)
|
|
#define BUTTON_PIN 48
|
|
#define PIN_BUTTON2 0
|
|
#define ALT_BUTTON_PIN PIN_BUTTON2
|
|
#else
|
|
#define BUTTON_PIN 0
|
|
#endif
|
|
|
|
// SD card
|
|
#define HAS_SDCARD
|
|
#define SDCARD_CS SPI_CS
|
|
#define SD_SPI_FREQUENCY 75000000U
|
|
|
|
// battery charger BQ25896
|
|
#define HAS_PPM 1
|
|
#define XPOWERS_CHIP_BQ25896
|
|
|
|
// battery quality management BQ27220
|
|
#define HAS_BQ27220 1
|
|
#define BQ27220_I2C_SDA SDA
|
|
#define BQ27220_I2C_SCL SCL
|
|
#define BQ27220_DESIGN_CAPACITY 1500
|
|
|
|
// LoRa
|
|
#define USE_SX1262
|
|
#define USE_SX1268
|
|
|
|
#define LORA_SCK SCK
|
|
#define LORA_MISO MISO
|
|
#define LORA_MOSI MOSI
|
|
#define LORA_CS 46
|
|
|
|
#define LORA_DIO0 -1
|
|
#if defined(T5_S3_EPAPER_PRO_V1)
|
|
#define LORA_RESET 43
|
|
#define LORA_DIO1 3 // SX1262 IRQ
|
|
#define LORA_DIO2 44 // SX1262 BUSY
|
|
#define LORA_DIO3
|
|
#else
|
|
#define LORA_RESET 1
|
|
#define LORA_DIO1 10 // SX1262 IRQ
|
|
#define LORA_DIO2 47 // SX1262 BUSY
|
|
#define LORA_DIO3
|
|
#endif
|
|
|
|
#define SX126X_CS LORA_CS
|
|
#define SX126X_DIO1 LORA_DIO1
|
|
#define SX126X_BUSY LORA_DIO2
|
|
#define SX126X_RESET LORA_RESET
|
|
#define SX126X_DIO2_AS_RF_SWITCH
|
|
#define SX126X_DIO3_TCXO_VOLTAGE 2.4
|