From 3617da4e8aa551a80909908336f0b549db456780 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 26 Mar 2023 09:59:06 -0300 Subject: [PATCH] 0.0.1 --- data/igate_conf.json | 29 +++++++++++------------------ src/display.cpp | 6 ------ 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/data/igate_conf.json b/data/igate_conf.json index 41cda80..c36a8c9 100644 --- a/data/igate_conf.json +++ b/data/igate_conf.json @@ -1,17 +1,16 @@ { "callsign": "CD2RXU-11", + "comment": "LoRa_APRS_iGate https://github.com/richonguzman/LoRa_APRS_iGate", "wifi": { "active": true, "AP": [ - { "SSID": "Richon", "password": "k4fPnmg5qnyf"} - ] - }, - "beacon": { - "comment": "LoRa_APRS_iGate https://github.com/richonguzman/LoRa_APRS_iGate", - "positions": [ - { "latitude": -33.0337121, "longitude": -71.5738217} + { "SSID": "Jimenicita", "password": "mg6wyMhqRnxk" }, + { "SSID": "Richon", "password": "k4fPnmg5qnyf" } ], - "timeout": 15 + "wifiPositions": [ + { "latitude": -33.0312173, "longitude": -71.5795816 }, + { "latitude": -33.0337121, "longitude": -71.5738217 } + ] }, "aprs_is": { "active": true, @@ -20,20 +19,14 @@ "port": 14580 }, "lora": { - "frequency_rx": 433775000, - "gain_rx": 0, - "frequency_tx": 433775000, - "power": 20, + "frequency": 433775000, "spreading_factor": 12, "signal_bandwidth": 125000, "coding_rate4": 5, - "tx_enable": false + "power": 20 }, "display": { "always_on": true, - "timeout": 10, - "overwrite_pin": 0, - "turn180": true - }, - "ntp_server": "pool.ntp.org" + "timeout": 10 + } } diff --git a/src/display.cpp b/src/display.cpp index 58df377..15cadde 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -8,7 +8,6 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); -// cppcheck-suppress unusedFunction void setup_display() { Wire.begin(OLED_SDA, OLED_SCL); @@ -27,7 +26,6 @@ void setup_display() { display.display(); } -// cppcheck-suppress unusedFunction void display_toggle(bool toggle) { if (toggle) { display.ssd1306_command(SSD1306_DISPLAYON); @@ -36,7 +34,6 @@ void display_toggle(bool toggle) { } } -// cppcheck-suppress unusedFunction void show_display(String line1, int wait) { display.clearDisplay(); display.setTextColor(WHITE); @@ -49,7 +46,6 @@ void show_display(String line1, int wait) { delay(wait); } -// cppcheck-suppress unusedFunction void show_display(String line1, String line2, int wait) { display.clearDisplay(); display.setTextColor(WHITE); @@ -64,7 +60,6 @@ void show_display(String line1, String line2, int wait) { delay(wait); } -// cppcheck-suppress unusedFunction void show_display(String line1, String line2, String line3, int wait) { display.clearDisplay(); display.setTextColor(WHITE); @@ -81,7 +76,6 @@ void show_display(String line1, String line2, String line3, int wait) { delay(wait); } -// cppcheck-suppress unusedFunction void show_display(String line1, String line2, String line3, String line4, int wait) { display.clearDisplay(); display.setTextColor(WHITE);