Initial work for Heltec Vision Master 213 (#4286)

* Fix for serial monitoring and I2C for Vision Master e213 (#4280)

* Fix for serial monitoring and I2C

The board did not allow serial monitoring while on boot mode, i was able to fix this by adding a board variant. I also corrected the i2c pins. I was able to test it with a cardkb

* oops

I delete some code by mistake, all back now

* Made some adjustments

* Minimize the diff

---------

Co-authored-by: Todd Herbert <herbert.todd@gmail.com>

* Don't redefine board identifier
Suppresses compiler warnings

* Detect Vision Master 213 with PIO serial monitor

* Use outermost button as user-button
Less chance of accidentally hitting reset

* Use 1200bps touch (213)
Allows upload without manually entering bootloader

---------

Co-authored-by: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com>
This commit is contained in:
todd-herbert 2024-07-14 10:36:07 +12:00 committed by GitHub
parent 9e4ce86c2a
commit 3fa8b357e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 47 additions and 7 deletions

View File

@ -0,0 +1,42 @@
{
"build": {
"arduino": {
"ldscript": "esp32s3_out.ld",
"partitions": "default_8MB.csv"
},
"core": "esp32",
"extra_flags": [
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_USB_MODE=0",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [
["0x303A", "0x1001"],
["0x303A", "0x0002"]
],
"mcu": "esp32s3",
"variant": "heltec_vision_master_e213"
},
"connectivity": ["wifi", "bluetooth", "lora"],
"debug": {
"openocd_target": "esp32s3.cfg"
},
"frameworks": ["arduino", "espidf"],
"name": "Heltec Vision Master E213",
"upload": {
"flash_size": "8MB",
"maximum_ram_size": 327680,
"maximum_size": 8388608,
"use_1200bps_touch": true,
"wait_for_upload_port": true,
"require_upload_port": true,
"speed": 921600
},
"url": "https://heltec.org/project/vision-master-e213/",
"vendor": "Heltec"
}

View File

@ -3,8 +3,6 @@
#include <stdint.h> #include <stdint.h>
#define HELTEC_VISION_MASTER_E213 true
static const uint8_t LED_BUILTIN = 35; static const uint8_t LED_BUILTIN = 35;
#define BUILTIN_LED LED_BUILTIN // backward compatibility #define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN #define LED_BUILTIN LED_BUILTIN
@ -12,8 +10,8 @@ static const uint8_t LED_BUILTIN = 35;
static const uint8_t TX = 43; static const uint8_t TX = 43;
static const uint8_t RX = 44; static const uint8_t RX = 44;
static const uint8_t SDA = 41; static const uint8_t SDA = 39;
static const uint8_t SCL = 42; static const uint8_t SCL = 38;
static const uint8_t SS = 8; static const uint8_t SS = 8;
static const uint8_t MOSI = 10; static const uint8_t MOSI = 10;

View File

@ -1,6 +1,6 @@
[env:heltec-vision-master-e213] [env:heltec-vision-master-e213]
extends = esp32s3_base extends = esp32s3_base
board = heltec_wifi_lora_32_V3 board = heltec_vision_master_e213
build_flags = build_flags =
${esp32s3_base.build_flags} ${esp32s3_base.build_flags}
-Ivariants/heltec_vision_master_e213 -Ivariants/heltec_vision_master_e213

View File

@ -27,7 +27,7 @@
#define VEXT_ENABLE 18 // powers the oled display and the lora antenna boost #define VEXT_ENABLE 18 // powers the oled display and the lora antenna boost
#define VEXT_ON_VALUE 1 #define VEXT_ON_VALUE 1
#define BUTTON_PIN 21 #define BUTTON_PIN 0
#define ADC_CTRL 46 #define ADC_CTRL 46
#define ADC_CTRL_ENABLED HIGH #define ADC_CTRL_ENABLED HIGH

View File

@ -27,7 +27,7 @@
#define VEXT_ENABLE 18 // powers the e-ink display #define VEXT_ENABLE 18 // powers the e-ink display
#define VEXT_ON_VALUE 1 #define VEXT_ON_VALUE 1
#define BUTTON_PIN 21 #define BUTTON_PIN 0
#define ADC_CTRL 46 #define ADC_CTRL 46
#define ADC_CTRL_ENABLED HIGH #define ADC_CTRL_ENABLED HIGH