* 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>
44 lines
988 B
C
44 lines
988 B
C
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include <stdint.h>
|
|
|
|
#define USB_VID 0x303a
|
|
#define USB_PID 0x1001
|
|
|
|
#if defined(T5_S3_EPAPER_PRO_V1)
|
|
// The default Wire will be mapped to RTC, Touch, BQ25896, and BQ27220
|
|
static const uint8_t SDA = 6;
|
|
static const uint8_t SCL = 5;
|
|
|
|
// Default SPI will be mapped to Radio
|
|
static const uint8_t SS = 46;
|
|
static const uint8_t MOSI = 17;
|
|
static const uint8_t MISO = 8;
|
|
static const uint8_t SCK = 18;
|
|
|
|
#define SPI_MOSI (17)
|
|
#define SPI_SCK (18)
|
|
#define SPI_MISO (8)
|
|
#define SPI_CS (16)
|
|
|
|
#else // T5_S3_EPAPER_PRO_V2
|
|
// The default Wire will be mapped to RTC, Touch, PCA9535, BQ25896, and BQ27220
|
|
static const uint8_t SDA = 39;
|
|
static const uint8_t SCL = 40;
|
|
|
|
// Default SPI will be mapped to Radio
|
|
static const uint8_t SS = 46;
|
|
static const uint8_t MOSI = 13;
|
|
static const uint8_t MISO = 21;
|
|
static const uint8_t SCK = 14;
|
|
|
|
#define SPI_MOSI (13)
|
|
#define SPI_SCK (14)
|
|
#define SPI_MISO (21)
|
|
#define SPI_CS (12)
|
|
|
|
#endif
|
|
|
|
#endif /* Pins_Arduino_h */
|