mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-28 04:31:58 +00:00
Compare commits
3 Commits
lora-param
...
M4-low-pow
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1081bdcf24 | ||
|
|
c8079d4115 | ||
|
|
8894a0b711 |
@@ -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