summaryrefslogtreecommitdiff
path: root/LoRaHandler/LoRaHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'LoRaHandler/LoRaHandler.h')
-rw-r--r--LoRaHandler/LoRaHandler.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/LoRaHandler/LoRaHandler.h b/LoRaHandler/LoRaHandler.h
index a715d03..8a4816a 100644
--- a/LoRaHandler/LoRaHandler.h
+++ b/LoRaHandler/LoRaHandler.h
@@ -24,6 +24,11 @@ class LoRaHandler {
mDot::ping_response down;
} LoRaPing;
+ typedef enum {
+ green = 0,
+ red
+ } LedColor;
+
LoRaHandler(osThreadId main);
~LoRaHandler();
@@ -35,7 +40,7 @@ class LoRaHandler {
LoRaPing getPingResults();
uint32_t getJoinAttempts();
void resetJoinAttempts();
-
+ void blinker();
osThreadId _main;
Thread _thread;
@@ -44,6 +49,8 @@ class LoRaHandler {
mDot* _dot;
Mutex _mutex;
uint32_t _join_attempts;
+ DigitalInOut _activity_led;
+ Ticker _tick;
};
#endif