Compare commits

...

4 Commits

Author SHA1 Message Date
Ricardo Guzman (Richonguzman)
10c7f9036b Update README.md 2025-06-19 12:45:06 -04:00
richonguzman
02d9448762 avoid Lightsleep on A7670 boards 2025-06-19 12:10:35 -04:00
richonguzman
61fc6b5f2a si7021 for Heltec fix 2025-06-19 11:49:37 -04:00
Ricardo Guzman (Richonguzman)
b45f378817 Merge pull request #296 from richonguzman/richonguzman-patch-2
Update build.yml for TA2MUN new board
2025-06-19 11:26:22 -04:00
4 changed files with 15 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ ____________________________________________________
- T-Deck Plus (and also regular T-Deck with/without GPS).
- HELTEC V2, V3, V3.2, T114 Wireless Stick, Wireless Stick Lite, HT-CT62, Wireless Tracker, Wireless Paper.
- HELTEC V2, V3, V3.2, T114, Wireless Stick, Wireless Stick Lite, HT-CT62, Wireless Tracker, Wireless Paper.
- RAK Wireless 4631 + 19007(19003)
@@ -46,6 +46,8 @@ ____________________________________________________
- QRP Labs LightGateway 1.0 and Plus 1.0.
- Faketec V3 (NRF52840 + Heltec HTRA62 SX1262)
- ESP32 Wroom + SX1278 LoRa Module or Ebyte 400M30S (or 900M30S) 1W LoRa Module for a DIY Versions.
- ESP32C3 + Ebyte 400M30S(or 900M30S) 1W LoRa Module for another DIY version.
@@ -141,4 +143,4 @@ ____________________________________________________
__________________________________________
# Hope You Enjoy this, 73! CA2RXU, Valparaiso, Chile
# Hope You Enjoy this, 73! CA2RXU, Valparaiso, Chile

View File

@@ -1,6 +1,7 @@
#include <ArduinoJson.h>
#include <SPIFFS.h>
#include "configuration.h"
#include "board_pinout.h"
#include "display.h"
@@ -48,6 +49,9 @@ void Configuration::writeFile() {
data["digi"]["mode"] = digi.mode;
data["digi"]["ecoMode"] = digi.ecoMode;
#if defined(HAS_A7670)
if (digi.ecoMode == 1) data["digi"]["ecoMode"] = 2;
#endif
data["lora"]["rxFreq"] = loramodule.rxFreq;
data["lora"]["txFreq"] = loramodule.txFreq;
@@ -171,6 +175,10 @@ bool Configuration::readFile() {
digi.ecoMode = data["digi"]["ecoMode"] | 0;
if (digi.ecoMode == 1) shouldSleepStop = false;
#if defined(HAS_A7670)
if (digi.ecoMode == 1) digi.ecoMode = 2;
#endif
loramodule.txFreq = data["lora"]["txFreq"] | 433775000;
loramodule.rxFreq = data["lora"]["rxFreq"] | 433775000;
loramodule.spreadingFactor = data["lora"]["spreadingFactor"] | 12;

View File

@@ -29,6 +29,7 @@ namespace SLEEP_Utils {
}
void setup() {
#ifndef HAS_A7670
if (Config.digi.ecoMode == 1) {
pinMode(RADIO_WAKEUP_PIN, INPUT);
attachInterrupt(digitalPinToInterrupt(RADIO_WAKEUP_PIN), wakeUpLoRaPacketReceived, RISING);
@@ -39,6 +40,7 @@ namespace SLEEP_Utils {
esp_deep_sleep_enable_gpio_wakeup(1ULL << GPIO_WAKEUP_PIN, ESP_GPIO_WAKEUP_GPIO_HIGH);
#endif
}
#endif
}
uint32_t getSecondsToSleep() {

View File

@@ -26,7 +26,7 @@ float newHum, newTemp, newPress, newGas;
Adafruit_BME280 bme280;
#if defined(HELTEC_V3) || defined(HELTEC_V3_2)
Adafruit_BMP280 bmp280(&Wire1);
Adafruit_Si7021 sensor = Adafruit_Si7021();
Adafruit_Si7021 si7021 = Adafruit_Si7021();
#else
Adafruit_BMP280 bmp280;
Adafruit_BME680 bme680;