-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Update LilyGo variants and add new variants #11192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
229510b
Update LilyGo T-Watch-S3 definition and expansion options
lewisxhe 5027101
Update LilyGo T-Watch-Ultra definition and expand options
lewisxhe 67195cf
Added variant LilyGo-T-LoRa-Pager
lewisxhe 7c89347
Update partition table order
lewisxhe 2c71846
Update LilyGo board partition table order
lewisxhe 1292b07
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#ifndef digitalPinToInterrupt | ||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1) | ||
#endif | ||
|
||
#define USB_VID 0x303a | ||
#define USB_PID 0x82D1 | ||
#define USB_MANUFACTURER "LILYGO" | ||
#define USB_PRODUCT "T-LoRa-Pager" | ||
|
||
// ST7796 | ||
#define DISP_WIDTH (222) | ||
#define DISP_HEIGHT (480) | ||
#define SD_CS (21) | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
//BHI260,PCF85063,BQ25896,DRV2605L,ES8311 share I2C Bus | ||
static const uint8_t SDA = 2; | ||
static const uint8_t SCL = 3; | ||
|
||
// Default sd cs pin | ||
static const uint8_t SS = SD_CS; | ||
static const uint8_t MOSI = 34; | ||
static const uint8_t MISO = 33; | ||
static const uint8_t SCK = 35; | ||
|
||
#define KB_INT (6) | ||
#define KB_BACKLIGHT (46) | ||
|
||
// Rotary | ||
#define ROTARY_A (40) | ||
#define ROTARY_B (41) | ||
#define ROTARY_C (7) | ||
|
||
// Interrupt IO port | ||
#define RTC_INT (1) | ||
#define NFC_INT (5) | ||
#define SENSOR_INT (8) | ||
#define NFC_CS (39) | ||
|
||
// ES8311 | ||
#define I2S_WS (18) | ||
#define I2S_SCK (11) | ||
#define I2S_MCLK (10) | ||
#define I2S_SDOUT (45) | ||
#define I2S_SDIN (17) | ||
|
||
// GPS | ||
#define GPS_TX (12) | ||
#define GPS_RX (4) | ||
#define GPS_PPS (13) | ||
|
||
// LoRa, SD, ST25R3916 card share SPI bus | ||
#define LORA_SCK (SCK) // share spi bus | ||
#define LORA_MISO (MISO) // share spi bus | ||
#define LORA_MOSI (MOSI) // share spi bus | ||
#define LORA_CS (36) | ||
#define LORA_RST (47) | ||
#define LORA_BUSY (48) | ||
#define LORA_IRQ (14) | ||
|
||
// SPI interface display | ||
#define DISP_MOSI (MOSI) | ||
#define DISP_MISO (MISO) | ||
#define DISP_SCK (SCK) | ||
#define DISP_RST (-1) | ||
#define DISP_CS (38) | ||
#define DISP_DC (37) | ||
#define DISP_BL (42) | ||
|
||
// External expansion chip IO definition | ||
#define EXPANDS_DRV_EN (0) | ||
#define EXPANDS_AMP_EN (1) | ||
#define EXPANDS_KB_RST (2) | ||
#define EXPANDS_LORA_EN (3) | ||
#define EXPANDS_GPS_EN (4) | ||
#define EXPANDS_NFC_EN (5) | ||
#define EXPANDS_DISP_RST (6) | ||
#define EXPANDS_GPS_RST (7) | ||
#define EXPANDS_KB_EN (8) | ||
#define EXPANDS_GPIO_EN (9) | ||
|
||
// Peripheral definition exists | ||
#define USING_AUDIO_CODEC | ||
#define USING_XL9555_EXPANDS | ||
#define USING_PPM_MANAGE | ||
#define USING_BQ_GAUGE | ||
#define USING_INPUT_DEV_ROTARY | ||
#define USING_INPUT_DEV_KEYBOARD | ||
#define USING_ST25R3916 | ||
#define USING_BHI260_SENSOR | ||
#define HAS_SD_CARD_SOCKET | ||
|
||
#endif /* Pins_Arduino_h */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.