From f287aafa663863ff08cc28dfb11daeaf9cd2da30 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sat, 19 Aug 2023 21:37:02 -0400 Subject: [PATCH] truck symbol added --- src/LoRa_APRS_Tracker.cpp | 2 +- src/custom_characters.h | 19 ++++++++++++++++++- src/display.cpp | 6 +++--- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index a4f6d58..fd99fca 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -28,7 +28,7 @@ TinyGPSPlus gps; BluetoothSerial SerialBT; OneButton userButton = OneButton(BUTTON_PIN, true, true); -String versionDate = "2023.08.17"; +String versionDate = "2023.08.19"; int myBeaconsIndex = 0; int myBeaconsSize = Config.beacons.size(); diff --git a/src/custom_characters.h b/src/custom_characters.h index feffef3..86d165b 100644 --- a/src/custom_characters.h +++ b/src/custom_characters.h @@ -122,7 +122,7 @@ static const unsigned char shipSymbol[] PROGMEM = { 0b00000000, 0b00000000, }; -static const unsigned char truckSymbol[] PROGMEM = { +static const unsigned char truck18Symbol[] PROGMEM = { 0b00000000, 0b00100000, 0b00000000, 0b00010000, 0b11111111, 0b11010000, @@ -224,6 +224,23 @@ static const unsigned char houseSymbol[] PROGMEM = { 0b01111111, 0b11111110 }; +static const unsigned char truckSymbol[] PROGMEM = { + 0b00000000, 0b00000000, + 0b00000011, 0b11100000, + 0b00000010, 0b00100000, + 0b00000010, 0b00010000, + 0b00000010, 0b00010000, + 0b00000010, 0b00001000, + 0b11111111, 0b11111111, + 0b11111111, 0b11111101, + 0b11111111, 0b11111101, + 0b11111111, 0b11111111, + 0b11001111, 0b11110011, + 0b01001000, 0b00010010, + 0b00110000, 0b00001100, + 0b00000000, 0b00000000 +}; + /*static const unsigned char noSymbol[] PROGMEM = { 0b00000000, 0b00000000, 0b00000000, 0b00000000, diff --git a/src/display.cpp b/src/display.cpp index 342bc3f..d635250 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -24,11 +24,11 @@ extern int menuDisplay; extern bool symbolAvailable; extern bool bluetoothConnected; -const char* symbolArray[] = { "[", ">", "j", "b", "<", "s", "u", "R", "v", "(", ";", "-"}; +const char* symbolArray[] = { "[", ">", "j", "b", "<", "s", "u", "R", "v", "(", ";", "-", "k"}; int symbolArraySize = sizeof(symbolArray)/sizeof(symbolArray[0]); const uint8_t *symbolsAPRS[] = {runnerSymbol, carSymbol, jeepSymbol, bikeSymbol, motorcycleSymbol, shipSymbol, - truckSymbol, recreationalVehicleSymbol, vanSymbol, carsateliteSymbol, tentSymbol, - houseSymbol }; + truck18Symbol, recreationalVehicleSymbol, vanSymbol, carsateliteSymbol, tentSymbol, + houseSymbol, truckSymbol}; // T-Beams bought with soldered OLED Screen comes with only 4 pins (VCC, GND, SDA, SCL) // If your board didn't come with 4 pins OLED Screen and comes with 5 and one of them is RST... // Uncomment Next Line (Remember ONLY if your OLED Screen has a RST pin). This is to avoid memory issues.