-
Notifications
You must be signed in to change notification settings - Fork 967
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial support for Heltec Wireless Paper v1.0
E-ink panel is DEPG0213BNS800. Otherwise, identical to v1.1 (?) Partial refresh supported, but not implemented in this commit.
- Loading branch information
1 parent
c005b6f
commit 9dbcd48
Showing
6 changed files
with
211 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,78 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#define WIFI_Kit_32 true | ||
#define DISPLAY_HEIGHT 64 | ||
#define DISPLAY_WIDTH 128 | ||
|
||
#define EXTERNAL_NUM_INTERRUPTS 16 | ||
#define NUM_DIGITAL_PINS 40 | ||
#define NUM_ANALOG_INPUTS 16 | ||
|
||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1) | ||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1) | ||
#define digitalPinHasPWM(p) (p < 34) | ||
|
||
static const uint8_t LED_BUILTIN = 35; | ||
#define BUILTIN_LED LED_BUILTIN // backward compatibility | ||
#define LED_BUILTIN LED_BUILTIN | ||
|
||
static const uint8_t KEY_BUILTIN = 0; | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
static const uint8_t SDA = 41; | ||
static const uint8_t SCL = 42; | ||
|
||
static const uint8_t SS = 8; | ||
static const uint8_t MOSI = 10; | ||
static const uint8_t MISO = 11; | ||
static const uint8_t SCK = 9; | ||
|
||
static const uint8_t A0 = 1; | ||
static const uint8_t A1 = 2; | ||
static const uint8_t A2 = 3; | ||
static const uint8_t A3 = 4; | ||
static const uint8_t A4 = 5; | ||
static const uint8_t A5 = 6; | ||
static const uint8_t A6 = 7; | ||
static const uint8_t A7 = 8; | ||
static const uint8_t A8 = 9; | ||
static const uint8_t A9 = 10; | ||
static const uint8_t A10 = 11; | ||
static const uint8_t A11 = 12; | ||
static const uint8_t A12 = 13; | ||
static const uint8_t A13 = 14; | ||
static const uint8_t A14 = 15; | ||
static const uint8_t A15 = 16; | ||
static const uint8_t A16 = 17; | ||
static const uint8_t A17 = 18; | ||
static const uint8_t A18 = 19; | ||
static const uint8_t A19 = 20; | ||
|
||
static const uint8_t T1 = 1; | ||
static const uint8_t T2 = 2; | ||
static const uint8_t T3 = 3; | ||
static const uint8_t T4 = 4; | ||
static const uint8_t T5 = 5; | ||
static const uint8_t T6 = 6; | ||
static const uint8_t T7 = 7; | ||
static const uint8_t T8 = 8; | ||
static const uint8_t T9 = 9; | ||
static const uint8_t T10 = 10; | ||
static const uint8_t T11 = 11; | ||
static const uint8_t T12 = 12; | ||
static const uint8_t T13 = 13; | ||
static const uint8_t T14 = 14; | ||
|
||
static const uint8_t Vext = 45; | ||
static const uint8_t LED = 18; | ||
|
||
static const uint8_t RST_LoRa = 12; | ||
static const uint8_t BUSY_LoRa = 13; | ||
static const uint8_t DIO0 = 14; | ||
|
||
#endif /* Pins_Arduino_h */ |
This file contains 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,13 @@ | ||
[env:heltec-wireless-paper-v1_0] | ||
extends = esp32s3_base | ||
board = heltec_wifi_lora_32_V3 | ||
build_flags = | ||
${esp32s3_base.build_flags} | ||
-I variants/heltec_wireless_paper_v1 | ||
-D HELTEC_WIRELESS_PAPER_V1_0 | ||
lib_deps = | ||
${esp32s3_base.lib_deps} | ||
https://github.com/meshtastic/GxEPD2/ | ||
adafruit/Adafruit BusIO@^1.13.2 | ||
lewisxhe/PCF8563_Library@^1.0.1 | ||
upload_speed = 115200 |
This file contains 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,54 @@ | ||
#define LED_PIN 18 | ||
|
||
// Enable bus for external periherals | ||
#define I2C_SDA SDA | ||
#define I2C_SCL SCL | ||
|
||
#define USE_EINK | ||
/* | ||
* eink display pins | ||
*/ | ||
#define PIN_EINK_CS 4 | ||
#define PIN_EINK_BUSY 7 | ||
#define PIN_EINK_DC 5 | ||
#define PIN_EINK_RES 6 | ||
#define PIN_EINK_SCLK 3 | ||
#define PIN_EINK_MOSI 2 | ||
|
||
/* | ||
* SPI interfaces | ||
*/ | ||
#define SPI_INTERFACES_COUNT 2 | ||
|
||
#define PIN_SPI_MISO 10 // MISO P0.17 | ||
#define PIN_SPI_MOSI 11 // MOSI P0.15 | ||
#define PIN_SPI_SCK 9 // SCK P0.13 | ||
|
||
#define VEXT_ENABLE 45 // active low, powers the oled display and the lora antenna boost | ||
#define BUTTON_PIN 0 | ||
|
||
#define BATTERY_PIN 1 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage | ||
#define ADC_CHANNEL ADC1_GPIO1_CHANNEL | ||
#define ADC_ATTENUATION ADC_ATTEN_DB_2_5 // lower dB for high resistance voltage divider | ||
#define ADC_MULTIPLIER 4.9 | ||
|
||
#define USE_SX1262 | ||
|
||
#define LORA_DIO0 -1 // a No connect on the SX1262 module | ||
#define LORA_RESET 12 | ||
#define LORA_DIO1 14 // SX1262 IRQ | ||
#define LORA_DIO2 13 // SX1262 BUSY | ||
#define LORA_DIO3 // Not connected on PCB, but internally on the TTGO SX1262, if DIO3 is high the TXCO is enabled | ||
|
||
#define LORA_SCK 9 | ||
#define LORA_MISO 11 | ||
#define LORA_MOSI 10 | ||
#define LORA_CS 8 | ||
|
||
#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 1.8 |