mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-24 22:10:09 +00:00
Initial Support for Heltec VM-T190 (#4391)
Initial Support for Heltec VM-T190
This commit is contained in:
parent
66c41e683d
commit
9ec7dbd695
42
boards/heltec_vision_master_t190.json
Normal file
42
boards/heltec_vision_master_t190.json
Normal 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_t190"
|
||||||
|
},
|
||||||
|
"connectivity": ["wifi", "bluetooth", "lora"],
|
||||||
|
"debug": {
|
||||||
|
"openocd_target": "esp32s3.cfg"
|
||||||
|
},
|
||||||
|
"frameworks": ["arduino", "espidf"],
|
||||||
|
"name": "Heltec Vision Master t190",
|
||||||
|
"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-t190/",
|
||||||
|
"vendor": "Heltec"
|
||||||
|
}
|
@ -10,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 = 2;
|
||||||
static const uint8_t SCL = 42;
|
static const uint8_t SCL = 1;
|
||||||
|
|
||||||
static const uint8_t SS = 8;
|
static const uint8_t SS = 8;
|
||||||
static const uint8_t MOSI = 10;
|
static const uint8_t MOSI = 10;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[env:heltec-vision-master-t190]
|
[env:heltec-vision-master-t190]
|
||||||
extends = esp32s3_base
|
extends = esp32s3_base
|
||||||
board = heltec_wifi_lora_32_V3
|
board = heltec_vision_master_t190
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32s3_base.build_flags}
|
${esp32s3_base.build_flags}
|
||||||
-Ivariants/heltec_vision_master_t190
|
-Ivariants/heltec_vision_master_t190
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
// #define LED_PIN 18
|
#define BUTTON_PIN 0
|
||||||
|
|
||||||
// Enable bus for external periherals
|
// I2C
|
||||||
#define I2C_SDA 1
|
#define I2C_SDA SDA
|
||||||
#define I2C_SCL 2
|
#define I2C_SCL SCL
|
||||||
|
|
||||||
|
// Display (TFT)
|
||||||
#define USE_ST7789
|
#define USE_ST7789
|
||||||
|
|
||||||
#define ST7789_NSS 39
|
#define ST7789_NSS 39
|
||||||
// #define ST7789_CS 39
|
|
||||||
#define ST7789_RS 47 // DC
|
#define ST7789_RS 47 // DC
|
||||||
#define ST7789_SDA 48 // MOSI
|
#define ST7789_SDA 48 // MOSI
|
||||||
#define ST7789_SCK 38
|
#define ST7789_SCK 38
|
||||||
@ -14,14 +14,9 @@
|
|||||||
#define ST7789_MISO 4
|
#define ST7789_MISO 4
|
||||||
#define ST7789_BUSY -1
|
#define ST7789_BUSY -1
|
||||||
#define VTFT_CTRL 7
|
#define VTFT_CTRL 7
|
||||||
// #define TFT_BL 3
|
|
||||||
#define VTFT_LEDA 17
|
#define VTFT_LEDA 17
|
||||||
#define TFT_BACKLIGHT_ON HIGH
|
#define TFT_BACKLIGHT_ON HIGH
|
||||||
// #define TFT_BL 17
|
|
||||||
// #define TFT_BACKLIGHT_ON HIGH
|
|
||||||
// #define ST7789_BL 3
|
|
||||||
#define ST7789_SPI_HOST SPI2_HOST
|
#define ST7789_SPI_HOST SPI2_HOST
|
||||||
// #define ST7789_BACKLIGHT_EN 17
|
|
||||||
#define SPI_FREQUENCY 10000000
|
#define SPI_FREQUENCY 10000000
|
||||||
#define SPI_READ_FREQUENCY 10000000
|
#define SPI_READ_FREQUENCY 10000000
|
||||||
#define TFT_HEIGHT 170
|
#define TFT_HEIGHT 170
|
||||||
@ -35,28 +30,27 @@
|
|||||||
|
|
||||||
// #define SLEEP_TIME 120
|
// #define SLEEP_TIME 120
|
||||||
|
|
||||||
/*
|
// SPI
|
||||||
* SPI interfaces
|
|
||||||
*/
|
|
||||||
#define SPI_INTERFACES_COUNT 2
|
#define SPI_INTERFACES_COUNT 2
|
||||||
|
#define PIN_SPI_MISO 11
|
||||||
|
#define PIN_SPI_MOSI 10
|
||||||
|
#define PIN_SPI_SCK 9
|
||||||
|
|
||||||
#define PIN_SPI_MISO 10 // MISO P0.17
|
// Power
|
||||||
#define PIN_SPI_MOSI 11 // MOSI P0.15
|
#define VEXT_ENABLE 5
|
||||||
#define PIN_SPI_SCK 9 // SCK P0.13
|
#define VEXT_ON_VALUE HIGH
|
||||||
|
|
||||||
// #define VEXT_ENABLE 7 // active low, powers the oled display and the lora antenna boost
|
|
||||||
#define BUTTON_PIN 0
|
|
||||||
|
|
||||||
#define ADC_CTRL 46
|
#define ADC_CTRL 46
|
||||||
#define ADC_CTRL_ENABLED HIGH
|
#define ADC_CTRL_ENABLED HIGH
|
||||||
#define BATTERY_PIN 6
|
#define BATTERY_PIN 6
|
||||||
#define ADC_CHANNEL ADC1_GPIO6_CHANNEL
|
#define ADC_CHANNEL ADC1_GPIO6_CHANNEL
|
||||||
#define ADC_MULTIPLIER 4.9 * 1.03 // Voltage divider is roughly 1:1
|
#define ADC_MULTIPLIER 4.9 * 1.03 // Voltage divider is roughly 1:1
|
||||||
#define ADC_ATTENUATION ADC_ATTEN_DB_2_5 // Voltage divider output is quite high
|
#define ADC_ATTENUATION ADC_ATTEN_DB_2_5 // Voltage divider output is quite high
|
||||||
|
#define HAS_32768HZ
|
||||||
|
|
||||||
|
// LoRa
|
||||||
#define USE_SX1262
|
#define USE_SX1262
|
||||||
|
|
||||||
#define LORA_DIO0 -1 // a No connect on the SX1262 module
|
#define LORA_DIO0 RADIOLIB_NC // a No connect on the SX1262 module
|
||||||
#define LORA_RESET 12
|
#define LORA_RESET 12
|
||||||
#define LORA_DIO1 14 // SX1262 IRQ
|
#define LORA_DIO1 14 // SX1262 IRQ
|
||||||
#define LORA_DIO2 13 // SX1262 BUSY
|
#define LORA_DIO2 13 // SX1262 BUSY
|
||||||
|
Loading…
Reference in New Issue
Block a user