kopia lustrzana https://github.com/sh123/esp32_loraprs
Moved to platformio
rodzic
487e4372a7
commit
98ff08da6f
|
@ -0,0 +1,12 @@
|
|||
[env:esp32dev]
|
||||
platform = espressif32
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
board = esp32dev
|
||||
board_build.f_cpu = 80000000L
|
||||
board_build.partitions = min_spiffs.csv
|
||||
lib_deps=
|
||||
hideakitai/DebugLog @ 0.6.6
|
||||
contrem/arduino-timer @ 2.3.1
|
||||
jgromes/RadioLib @ 5.5.0
|
||||
rlogiacco/CircularBuffer @ 1.3.3
|
|
@ -105,6 +105,11 @@ LoraPrs::Service loraPrsService;
|
|||
|
||||
auto watchdogLedTimer = timer_create_default();
|
||||
|
||||
bool toggleWatchdogLed(void *) {
|
||||
digitalWrite(BUILTIN_LED, !digitalRead(BUILTIN_LED));
|
||||
return true;
|
||||
}
|
||||
|
||||
void setup() {
|
||||
pinMode(BUILTIN_LED, OUTPUT);
|
||||
digitalWrite(BUILTIN_LED, 1);
|
||||
|
@ -124,8 +129,3 @@ void loop() {
|
|||
loraPrsService.loop();
|
||||
watchdogLedTimer.tick();
|
||||
}
|
||||
|
||||
bool toggleWatchdogLed(void *) {
|
||||
digitalWrite(BUILTIN_LED, !digitalRead(BUILTIN_LED));
|
||||
return true;
|
||||
}
|
Ładowanie…
Reference in New Issue