Use PlattformIO Libmanager and set SF7 as default

Use PlattformIO Libmanager and set SF7 as default
pull/1/head
hekopath 2021-08-08 15:13:01 +02:00
rodzic 487c1f5583
commit d4916d4a84
6 zmienionych plików z 28 dodań i 10 usunięć

6
.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1,6 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
main/credentials.h

7
.vscode/extensions.json vendored 100644
Wyświetl plik

@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}

Wyświetl plik

@ -68,7 +68,7 @@ void ttn_register(void (*callback)(uint8_t message));
#define LOGO_DELAY 5000 // Time to show logo on first boot
#define LORAWAN_PORT 10 // Port the messages will be sent to
#define LORAWAN_CONFIRMED_EVERY 0 // Send confirmed message every these many messages (0 means never)
#define LORAWAN_SF DR_SF10 // Spreading factor (recommended DR_SF7 for ttn network map purposes, DR_SF10 works for slow moving trackers)
#define LORAWAN_SF DR_SF7 // Spreading factor (recommended DR_SF7 for ttn network map purposes, DR_SF10 works for slow moving trackers)
#define LORAWAN_ADR 0 // Enable ADR
#define REQUIRE_RADIO true // If true, we will fail to start if the radio is not found

Wyświetl plik

@ -28,16 +28,16 @@ Credentials file
// first. When copying an EUI from ttnctl output, this means to reverse
// the bytes. For TTN issued EUIs the last bytes should be 0x00, 0x00,
// 0x00.
static const u1_t PROGMEM APPEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t PROGMEM APPEUI[8] = { 0x4D, 0x9C, 0x1B, 0xE3, 0xD5, 0x15, 0xD8, 0xC1 };
// This should also be in little endian format (lsb), see above.
// Note: You do not need to set this field, if unset it will be generated automatically based on the device macaddr
static u1_t DEVEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static u1_t DEVEUI[8] = { 0x64, 0x3F, 0xE9, 0x85, 0x43, 0xFC, 0x0D, 0xAC };
// This key should be in big endian format (msb) (or, since it is not really a
// number but a block of memory, endianness does not really apply). In
// practice, a key taken from ttnctl can be copied as-is.
// The key shown here is the semtech default key.
static const u1_t PROGMEM APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t PROGMEM APPKEY[16] = { 0xC2, 0x5D, 0x64, 0xE7, 0xE9, 0x7F, 0x85, 0xCE, 0x09, 0x63, 0x20, 0xE8, 0x4F, 0x82, 0xAD, 0x76 };
#endif

Wyświetl plik

@ -35,7 +35,7 @@
#include "rom/rtc.h"
#include <TinyGPS++.h>
#include <Wire.h>
#include "axp20x.h"
#include <axp20x.h>
AXP20X_Class axp;
bool pmu_irq = false;

Wyświetl plik

@ -17,15 +17,20 @@ board = ttgo-t-beam
framework = arduino
; note: we add src to our include search path so that lmic_project_config can override
build_flags = -Wall -Wextra -Wno-missing-field-initializers -O3 -Wl,-Map,.pio/build/esp32/output.map -D CFG_us915 -D CFG_sx1276_radio
build_flags = -Wall
-Wextra
-Wno-missing-field-initializers -O3 -Wl,-Map,.pio/build/esp32/output.map
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
-D CFG_eu868=1
-D CFG_sx1276_radio=1
; -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
monitor_speed = 115200
lib_deps =
https://github.com/mcci-catena/arduino-lmic
TinyGPSPlus
ESP8266_SSD1306
AXP202X_Library
mcci-catena/MCCI LoRaWAN LMIC library @ ^4.0.0
mikalhart/TinyGPSPlus @ ^1.0.2
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays @ ^4.2.1
lewisxhe/AXP202X_Library @ ^1.1.3
SPI