Unverified Commit d177e444 authored by Jeff H - openSAR.net's avatar Jeff H - openSAR.net Committed by GitHub

Create new pins_arduino.h and update boards.txt to add Heltec Wireless Tracker board (#8725)

* Create pins_arduino.h

* Update boards.txt

* Update boards.txt

* "Addressed feedback from the review"

* Update boards.txt

* fix(): Remove unnecessary eraseflash + reorder

* fix(heltec): Remove extra libs

---------
Co-authored-by: default avatarJan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
parent 9258a8c0
......@@ -20699,7 +20699,7 @@ heltec_wireless_tracker.upload.tool=esptool_py
heltec_wireless_tracker.upload.tool.default=esptool_py
heltec_wireless_tracker.upload.tool.network=esp_ota
heltec_wireless_tracker.upload.maximum_size=3342336
heltec_wireless_tracker.upload.maximum_size=1310720
heltec_wireless_tracker.upload.maximum_data_size=327680
heltec_wireless_tracker.upload.flags=
heltec_wireless_tracker.upload.extra_flags=
......@@ -20722,16 +20722,58 @@ heltec_wireless_tracker.build.cdc_on_boot=0
heltec_wireless_tracker.build.msc_on_boot=0
heltec_wireless_tracker.build.dfu_on_boot=0
heltec_wireless_tracker.build.f_cpu=240000000L
heltec_wireless_tracker.build.flash_size=8MB
heltec_wireless_tracker.build.flash_size=4MB
heltec_wireless_tracker.build.flash_freq=80m
heltec_wireless_tracker.build.flash_mode=dio
heltec_wireless_tracker.build.boot=qio
heltec_wireless_tracker.build.boot_freq=80m
heltec_wireless_tracker.build.partitions=default_8MB
heltec_wireless_tracker.build.partitions=default
heltec_wireless_tracker.build.loop_core=
heltec_wireless_tracker.build.event_core=
heltec_wireless_tracker.build.psram_type=qspi
heltec_wireless_tracker.build.memory_type={build.boot}_{build.psram_type}
heltec_wireless_tracker.build.defines=-D{build.band} {build.psram_val} -DLoRaWAN_DEBUG_LEVEL={build.LoRaWanDebugLevel} -DACTIVE_REGION=LORAMAC_{build.band} -DLORAWAN_PREAMBLE_LENGTH={build.LORAWAN_PREAMBLE_LENGTH} -DLORAWAN_DEVEUI_AUTO={build.LORAWAN_DEVEUI_AUTO} -D{build.board}
heltec_wireless_tracker.menu.PSRAM.disabled=Disabled
heltec_wireless_tracker.menu.PSRAM.disabled.build.psram_val=
heltec_wireless_tracker.menu.PSRAM.disabled.build.psram_type=qspi
heltec_wireless_tracker.menu.PSRAM.enabled=QSPI PSRAM
heltec_wireless_tracker.menu.PSRAM.enabled.build.psram_val=-DBOARD_HAS_PSRAM
heltec_wireless_tracker.menu.PSRAM.enabled.build.psram_type=qspi
heltec_wireless_tracker.menu.PSRAM.opi=OPI PSRAM
heltec_wireless_tracker.menu.PSRAM.opi.build.psram_val=-DBOARD_HAS_PSRAM
heltec_wireless_tracker.menu.PSRAM.opi.build.psram_type=opi
heltec_wireless_tracker.menu.FlashMode.qio=QIO 80MHz
heltec_wireless_tracker.menu.FlashMode.qio.build.flash_mode=dio
heltec_wireless_tracker.menu.FlashMode.qio.build.boot=qio
heltec_wireless_tracker.menu.FlashMode.qio.build.boot_freq=80m
heltec_wireless_tracker.menu.FlashMode.qio.build.flash_freq=80m
heltec_wireless_tracker.menu.FlashMode.qio120=QIO 120MHz
heltec_wireless_tracker.menu.FlashMode.qio120.build.flash_mode=dio
heltec_wireless_tracker.menu.FlashMode.qio120.build.boot=qio
heltec_wireless_tracker.menu.FlashMode.qio120.build.boot_freq=120m
heltec_wireless_tracker.menu.FlashMode.qio120.build.flash_freq=80m
heltec_wireless_tracker.menu.FlashMode.dio=DIO 80MHz
heltec_wireless_tracker.menu.FlashMode.dio.build.flash_mode=dio
heltec_wireless_tracker.menu.FlashMode.dio.build.boot=dio
heltec_wireless_tracker.menu.FlashMode.dio.build.boot_freq=80m
heltec_wireless_tracker.menu.FlashMode.dio.build.flash_freq=80m
heltec_wireless_tracker.menu.FlashMode.opi=OPI 80MHz
heltec_wireless_tracker.menu.FlashMode.opi.build.flash_mode=dout
heltec_wireless_tracker.menu.FlashMode.opi.build.boot=opi
heltec_wireless_tracker.menu.FlashMode.opi.build.boot_freq=80m
heltec_wireless_tracker.menu.FlashMode.opi.build.flash_freq=80m
heltec_wireless_tracker.menu.FlashSize.4M=4MB (32Mb)
heltec_wireless_tracker.menu.FlashSize.4M.build.flash_size=4MB
heltec_wireless_tracker.menu.FlashSize.8M=8MB (64Mb)
heltec_wireless_tracker.menu.FlashSize.8M.build.flash_size=8MB
heltec_wireless_tracker.menu.FlashSize.8M.build.partitions=default_8MB
heltec_wireless_tracker.menu.FlashSize.16M=16MB (128Mb)
heltec_wireless_tracker.menu.FlashSize.16M.build.flash_size=16MB
#heltec_wireless_tracker.menu.FlashSize.32M=32MB (256Mb)
#heltec_wireless_tracker.menu.FlashSize.32M.build.flash_size=32MB
heltec_wireless_tracker.menu.LoopCore.1=Core 1
heltec_wireless_tracker.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
......@@ -20748,8 +20790,8 @@ heltec_wireless_tracker.menu.USBMode.hwcdc.build.usb_mode=1
heltec_wireless_tracker.menu.USBMode.default=USB-OTG (TinyUSB)
heltec_wireless_tracker.menu.USBMode.default.build.usb_mode=0
heltec_wireless_tracker.menu.CDCOnBoot.default=Enabled
heltec_wireless_tracker.menu.CDCOnBoot.default.build.cdc_on_boot=1
heltec_wireless_tracker.menu.CDCOnBoot.default=Disabled
heltec_wireless_tracker.menu.CDCOnBoot.default.build.cdc_on_boot=0
heltec_wireless_tracker.menu.CDCOnBoot.cdc=Enabled
heltec_wireless_tracker.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
......@@ -20770,6 +20812,43 @@ heltec_wireless_tracker.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
heltec_wireless_tracker.menu.UploadMode.cdc.upload.use_1200bps_touch=true
heltec_wireless_tracker.menu.UploadMode.cdc.upload.wait_for_upload_port=true
heltec_wireless_tracker.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
heltec_wireless_tracker.menu.PartitionScheme.default.build.partitions=default
heltec_wireless_tracker.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
heltec_wireless_tracker.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
heltec_wireless_tracker.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
heltec_wireless_tracker.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
heltec_wireless_tracker.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
heltec_wireless_tracker.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
heltec_wireless_tracker.menu.PartitionScheme.minimal.build.partitions=minimal
heltec_wireless_tracker.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
heltec_wireless_tracker.menu.PartitionScheme.no_ota.build.partitions=no_ota
heltec_wireless_tracker.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
heltec_wireless_tracker.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
heltec_wireless_tracker.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
heltec_wireless_tracker.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
heltec_wireless_tracker.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
heltec_wireless_tracker.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
heltec_wireless_tracker.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
heltec_wireless_tracker.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
heltec_wireless_tracker.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
heltec_wireless_tracker.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
heltec_wireless_tracker.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
heltec_wireless_tracker.menu.PartitionScheme.huge_app.build.partitions=huge_app
heltec_wireless_tracker.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
heltec_wireless_tracker.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
heltec_wireless_tracker.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
heltec_wireless_tracker.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
heltec_wireless_tracker.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
heltec_wireless_tracker.menu.PartitionScheme.fatflash.build.partitions=ffat
heltec_wireless_tracker.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
heltec_wireless_tracker.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
heltec_wireless_tracker.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
heltec_wireless_tracker.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
heltec_wireless_tracker.menu.PartitionScheme.rainmaker=RainMaker
heltec_wireless_tracker.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
heltec_wireless_tracker.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
heltec_wireless_tracker.menu.CPUFreq.240=240MHz (WiFi)
heltec_wireless_tracker.menu.CPUFreq.240.build.f_cpu=240000000L
heltec_wireless_tracker.menu.CPUFreq.160=160MHz (WiFi)
......@@ -20851,8 +20930,6 @@ heltec_wireless_tracker.menu.LORAWAN_PREAMBLE_LENGTH.0.build.LORAWAN_PREAMBLE_LE
heltec_wireless_tracker.menu.LORAWAN_PREAMBLE_LENGTH.1=16(For M00 and M00L)
heltec_wireless_tracker.menu.LORAWAN_PREAMBLE_LENGTH.1.build.LORAWAN_PREAMBLE_LENGTH=16
heltec_wireless_tracker.build.defines=-D{build.band} -DLoRaWAN_DEBUG_LEVEL={build.LoRaWanDebugLevel} -DACTIVE_REGION=LORAMAC_{build.band} -DLORAWAN_PREAMBLE_LENGTH={build.LORAWAN_PREAMBLE_LENGTH} -DLORAWAN_DEVEUI_AUTO={build.LORAWAN_DEVEUI_AUTO} -D{build.board}
heltec_wireless_tracker.menu.EraseFlash.none=Disabled
heltec_wireless_tracker.menu.EraseFlash.none.upload.erase_cmd=
heltec_wireless_tracker.menu.EraseFlash.all=Enabled
......@@ -4,24 +4,23 @@
#include <stdint.h>
#include "soc/soc_caps.h"
#define WIRELESS_TRACKER true
#define DISPLAY_HEIGHT 80
#define DISPLAY_WIDTH 160
#define USB_VID 0x303a
#define USB_PID 0x1001
static const uint8_t LED_BUILTIN = 18;
// Some boards have too low voltage on this pin (board design bug)
// Use different pin with 3V and connect with 48
// and change this setup for the chosen pin (for example 38)
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+48;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
#define LED_BUILTIN LED_BUILTIN
#define RGB_BUILTIN LED_BUILTIN
#define RGB_BRIGHTNESS 64
static const uint8_t TX = 43;
static const uint8_t RX = 44;
static const uint8_t SDA = 5;
static const uint8_t SCL = 6;
static const uint8_t SDA = 41;
static const uint8_t SCL = 42;
static const uint8_t SS = 8;
static const uint8_t MOSI = 10;
......@@ -66,12 +65,7 @@ static const uint8_t T14 = 14;
static const uint8_t Vext = 3;
static const uint8_t LED = 18;
static const uint8_t ST7735_CS_PIN = 38;
static const uint8_t ST7735_RST_PIN = 39;
static const uint8_t ST7735_DC_PIN = 40;
static const uint8_t ST7735_SCLK_PIN = 41;
static const uint8_t ST7735_MOSI_PIN = 42;
static const uint8_t ST7735_LED_K_PIN = 21;
static const uint8_t RST_OLED = 39;
static const uint8_t SCL_OLED = 41;
static const uint8_t SDA_OLED = 42;
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment