mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-27 20:21:52 +00:00
Compare commits
3 Commits
more-varia
...
renovate/m
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93fcac4383 | ||
|
|
91ad861b26 | ||
|
|
c8079d4115 |
@@ -119,7 +119,7 @@ lib_deps =
|
||||
[device-ui_base]
|
||||
lib_deps =
|
||||
# renovate: datasource=git-refs depName=meshtastic/device-ui packageName=https://github.com/meshtastic/device-ui gitBranch=master
|
||||
https://github.com/meshtastic/device-ui/archive/37ad715b76cd6ca4aa500a4a4d9740e3cdf3e3cb.zip
|
||||
https://github.com/meshtastic/device-ui/archive/69739b84f87a91568d3c421498bc89977937a141.zip
|
||||
|
||||
; Common libs for environmental measurements in telemetry module
|
||||
[environmental_base]
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
[env:heltec-wireless-tracker-v2]
|
||||
custom_meshtastic_support_level = 1
|
||||
custom_meshtastic_images = heltec_wireless_tracker_v2.svg
|
||||
custom_meshtastic_tags = Heltec
|
||||
|
||||
extends = esp32s3_base
|
||||
board = heltec_wireless_tracker_v2
|
||||
board_build.partitions = default_8MB.csv
|
||||
upload_protocol = esptool
|
||||
custom_meshtastic_hw_model = 113
|
||||
custom_meshtastic_hw_model_slug = HELTEC_WIRELESS_TRACKER_V2
|
||||
custom_meshtastic_architecture = esp32s3
|
||||
custom_meshtastic_display_name = Heltec Wireless Tracker V2
|
||||
custom_meshtastic_actively_supported = true
|
||||
|
||||
build_flags =
|
||||
${esp32s3_base.build_flags}
|
||||
|
||||
@@ -49,3 +49,21 @@ void initVariant()
|
||||
pinMode(Battery_LED_4, OUTPUT);
|
||||
ledOff(Battery_LED_4);
|
||||
}
|
||||
|
||||
/// called from main-nrf52.cpp during the cpuDeepSleep() function
|
||||
void variant_shutdown()
|
||||
{
|
||||
for (int pin = 0; pin < 48; pin++) {
|
||||
if (pin == PIN_GPS_EN || pin == PIN_BUTTON1) {
|
||||
continue;
|
||||
}
|
||||
pinMode(pin, OUTPUT);
|
||||
digitalWrite(pin, LOW);
|
||||
if (pin >= 32) {
|
||||
NRF_P1->DIRCLR = (1 << (pin - 32));
|
||||
} else {
|
||||
NRF_GPIO->DIRCLR = (1 << pin);
|
||||
}
|
||||
}
|
||||
digitalWrite(PIN_GPS_EN, HIGH);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user