HWSL_V3_Display add
This commit is contained in:
parent
16ce6bc6d2
commit
d267f6699c
|
|
@ -23,6 +23,8 @@ jobs:
|
||||||
chip: esp32s3
|
chip: esp32s3
|
||||||
- name: heltec_wireless_stick_lite_v3
|
- name: heltec_wireless_stick_lite_v3
|
||||||
chip: esp32s3
|
chip: esp32s3
|
||||||
|
- name: heltec_wireless_stick_lite_v3_display
|
||||||
|
chip: esp32s3
|
||||||
- name: ESP32_DIY_LoRa
|
- name: ESP32_DIY_LoRa
|
||||||
chip: esp32
|
chip: esp32
|
||||||
- name: ESP32_DIY_LoRa_915
|
- name: ESP32_DIY_LoRa_915
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,17 @@ build_flags =
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${common.lib_deps}
|
${common.lib_deps}
|
||||||
|
|
||||||
|
[env:heltec_wireless_stick_lite_v3_display]
|
||||||
|
board = esp32-s3-devkitc-1
|
||||||
|
board_build.mcu = esp32s3
|
||||||
|
build_flags =
|
||||||
|
-Werror -Wall
|
||||||
|
-DHELTEC_WSL_V3_DISPLAY
|
||||||
|
-DHAS_SX1262
|
||||||
|
-DELEGANTOTA_USE_ASYNC_WEBSERVER=1
|
||||||
|
lib_deps =
|
||||||
|
${common.lib_deps}
|
||||||
|
|
||||||
[env:ESP32_DIY_LoRa]
|
[env:ESP32_DIY_LoRa]
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
build_flags =
|
build_flags =
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ ________________________________________________________________________________
|
||||||
#include "A7670_utils.h"
|
#include "A7670_utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
String versionDate = "2024.07.10";
|
String versionDate = "2024.07.17";
|
||||||
Configuration Config;
|
Configuration Config;
|
||||||
WiFiClient espClient;
|
WiFiClient espClient;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0
|
#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HELTEC_V3) || defined(HELTEC_WSL_V3) || defined(HELTEC_WIRELESS_TRACKER) || defined(HELTEC_WS)
|
#if defined(HELTEC_V3) || defined(HELTEC_WSL_V3) || defined(HELTEC_WSL_V3_DISPLAY) || defined(HELTEC_WIRELESS_TRACKER) || defined(HELTEC_WS)
|
||||||
#define RADIO_SCLK_PIN 9 // SX1262 SCK
|
#define RADIO_SCLK_PIN 9 // SX1262 SCK
|
||||||
#define RADIO_MISO_PIN 11 // SX1262 MISO
|
#define RADIO_MISO_PIN 11 // SX1262 MISO
|
||||||
#define RADIO_MOSI_PIN 10 // SX1262 MOSI
|
#define RADIO_MOSI_PIN 10 // SX1262 MOSI
|
||||||
|
|
@ -163,13 +163,16 @@
|
||||||
#define BATTERY_PIN 37
|
#define BATTERY_PIN 37
|
||||||
#define ADC_CTRL 21
|
#define ADC_CTRL 21
|
||||||
#endif
|
#endif
|
||||||
#if defined(HELTEC_V3) || defined(HELTEC_WSL_V3) || defined(HELTEC_WS)
|
#if defined(HELTEC_V3) || defined(HELTEC_WSL_V3) || defined(HELTEC_WSL_V3_DISPLAY) || defined(HELTEC_WS)
|
||||||
#define INTERNAL_LED_PIN 35
|
#define INTERNAL_LED_PIN 35
|
||||||
#define BATTERY_PIN 1
|
#define BATTERY_PIN 1
|
||||||
#define VEXT_CTRL 36
|
#define VEXT_CTRL 36
|
||||||
#define ADC_CTRL 37 // Heltec WSL_V3 just like Heltec WT
|
#define ADC_CTRL 37 // Heltec WSL_V3 just like Heltec WT
|
||||||
#define BOARD_I2C_SDA 41
|
#define BOARD_I2C_SDA 41
|
||||||
#define BOARD_I2C_SCL 42
|
#define BOARD_I2C_SCL 42
|
||||||
|
#ifdef HELTEC_WSL_V3_DISPLAY
|
||||||
|
#define OLED_RST -1
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ESP32_DIY_LoRa) || defined(ESP32_DIY_LoRa_915) || defined(ESP32_DIY_1W_LoRa) || defined(ESP32_DIY_1W_LoRa_915)
|
#if defined(ESP32_DIY_LoRa) || defined(ESP32_DIY_LoRa_915) || defined(ESP32_DIY_1W_LoRa) || defined(ESP32_DIY_1W_LoRa_915)
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,12 @@
|
||||||
#if defined(HELTEC_V3)
|
#if defined(HELTEC_V3)
|
||||||
#define OLED_DISPLAY_HAS_RST_PIN
|
#define OLED_DISPLAY_HAS_RST_PIN
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HELTEC_WSL_V3_DISPLAY
|
||||||
|
Adafruit_SSD1306 display(128, 64, &Wire1, OLED_RST);
|
||||||
|
#else
|
||||||
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST);
|
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern Configuration Config;
|
extern Configuration Config;
|
||||||
|
|
@ -55,7 +59,10 @@ void setup_display() {
|
||||||
delay(20);
|
delay(20);
|
||||||
digitalWrite(OLED_RST, HIGH);
|
digitalWrite(OLED_RST, HIGH);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HELTEC_WSL_V3_DISPLAY
|
||||||
Wire.begin(OLED_SDA, OLED_SCL);
|
Wire.begin(OLED_SDA, OLED_SCL);
|
||||||
|
#endif
|
||||||
|
|
||||||
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
|
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
|
||||||
Serial.println(F("SSD1306 allocation failed"));
|
Serial.println(F("SSD1306 allocation failed"));
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ namespace POWER_Utils {
|
||||||
Wire.begin(BOARD_I2C_SDA, BOARD_I2C_SCL);
|
Wire.begin(BOARD_I2C_SDA, BOARD_I2C_SCL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HELTEC_V3
|
#if defined(HELTEC_V3) || defined(HELTEC_WSL_V3_DISPLAY)
|
||||||
Wire1.begin(BOARD_I2C_SDA, BOARD_I2C_SCL);
|
Wire1.begin(BOARD_I2C_SDA, BOARD_I2C_SCL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue