From 29972a00a0b82c2fbd8650656016be136cec9814 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 8 Jan 2021 22:07:18 +0100 Subject: [PATCH 1/4] fixing display reset --- src/display.cpp | 7 +++++++ src/pins.h | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/display.cpp b/src/display.cpp index 292b63e..7ed9ca5 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -11,6 +11,13 @@ Adafruit_SSD1306 display(128, 64, &Wire); void setup_display() { +#ifdef OLED_RESET + pinMode(OLED_RESET, OUTPUT); + digitalWrite(OLED_RESET, LOW); + delay(20); + digitalWrite(OLED_RESET, HIGH); +#endif + Wire.begin(OLED_SDA, OLED_SCL); if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3c, false, false)) { diff --git a/src/pins.h b/src/pins.h index 4c764cb..12a031c 100644 --- a/src/pins.h +++ b/src/pins.h @@ -8,9 +8,16 @@ #if defined(HELTEC_WIFI_LORA_32_V1) || defined(HELTEC_WIFI_LORA_32_V2) || defined(TTGO_LORA32_V1) #define OLED_SDA 4 #define OLED_SCL 15 + #define OLED_RESET 16 #endif -#if defined(TTGO_LORA32_V2) || defined(TTGO_T_Beam_V0_7) || defined(TTGO_T_Beam_V1_0) +#if defined(TTGO_LORA32_V2) + #define OLED_SDA 21 + #define OLED_SCL 22 + #define OLED_RESET 16 +#endif + +#if defined(TTGO_T_Beam_V0_7) || defined(TTGO_T_Beam_V1_0) #define OLED_SDA 21 #define OLED_SCL 22 #endif From a29b848f1bcc4cbfc38399a59b5e8885622fc396 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 9 Jan 2021 13:12:11 +0100 Subject: [PATCH 2/4] fixing cppcheck issues --- .github/workflows/build_check.yml | 2 +- platformio.ini | 2 +- src/configuration.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index a65a723..c6643da 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -16,7 +16,7 @@ jobs: - run: pip3 install platformio - run: echo "$HOME/.local/bin" >> $GITHUB_PATH - uses: actions/checkout@v2 - - run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high --skip-packages --flags "--suppress=*:*.pio\* --inline-suppr" -v + - run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high --skip-packages PlatformIO-Build: runs-on: ubuntu-latest diff --git a/platformio.ini b/platformio.ini index d03274d..1307a57 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,7 +16,7 @@ lib_deps = peterus/LoRa-APRS-Lib @ 0.0.5 check_tool = cppcheck check_flags = - cppcheck: --suppress=*:*.pio\* --inline-suppr + cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK --force monitor_flags = --raw # activate for OTA Update, use the CALLSIGN from is-cfg.h as upload_port: #upload_protocol = espota diff --git a/src/configuration.h b/src/configuration.h index 8e7e101..f0ecdd7 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -4,7 +4,9 @@ #include #include +#ifndef CPPCHECK #include +#endif class Configuration { From f9edab86062eab1d4018fd7668cc624c56bd0ae5 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 30 Jan 2021 22:27:58 +0100 Subject: [PATCH 3/4] Create bug_report_beta.md --- .github/ISSUE_TEMPLATE/bug_report_beta.md | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report_beta.md diff --git a/.github/ISSUE_TEMPLATE/bug_report_beta.md b/.github/ISSUE_TEMPLATE/bug_report_beta.md new file mode 100644 index 0000000..0b1f742 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report_beta.md @@ -0,0 +1,35 @@ +--- +name: Bug report for Beta-Version +about: Create a report to help us improve the Beta-Version +title: '' +labels: bug, beta +assignees: peterus + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: + - PlatformIO Version: + - Firmware Version: + +**Board name:** +- + +**Additional context** +Add any other context about the problem here. From 64bf24bdd46f1a3136c68e9dea8429b9ff178e38 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 14 Mar 2021 16:00:14 +0100 Subject: [PATCH 4/4] version bump --- src/LoRa_APRS_iGate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 533360f..2417f76 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -17,7 +17,7 @@ #include "TaskWifi.h" #include "project_configuration.h" -#define VERSION "21.06.0-dev" +#define VERSION "21.10.0" String create_lat_aprs(double lat); String create_long_aprs(double lng);