adding ship and truck symbol

This commit is contained in:
richonguzman 2023-07-24 23:29:35 -04:00
parent 3948619b89
commit 9edf4f2cda
3 changed files with 37 additions and 3 deletions

View File

@ -30,7 +30,7 @@ TinyGPSPlus gps;
NimBLECharacteristic* pCharacteristic;
OneButton userButton = OneButton(BUTTON_PIN, true, true);
String versionDate = "2023.07.24";
String versionDate = "2023.07.25";
int myBeaconsIndex = 0;
int myBeaconsSize = Config.beacons.size();

View File

@ -88,6 +88,40 @@ static const unsigned char motorcycleSymbol[] PROGMEM = {
0b00110000, 0b00001100
};
static const unsigned char shipSymbol[] PROGMEM = {
0b00100000, 0b00000000,
0b00010000, 0b00000000,
0b00001000, 0b00000000,
0b00111111, 0b10000000,
0b00001111, 0b11000000,
0b00001100, 0b00100000,
0b00001100, 0b00010000,
0b01001100, 0b00001000,
0b01111111, 0b11111111,
0b10000000, 0b00000001,
0b11111111, 0b11111110,
0b11111111, 0b11111000,
0b00000000, 0b00000000,
0b00000000, 0b00000000,
};
static const unsigned char truckSymbol[] PROGMEM = {
0b00000000, 0b00100000,
0b00000000, 0b00010000,
0b11111111, 0b11010000,
0b11111111, 0b11011111,
0b11111111, 0b11011001,
0b11111111, 0b11011001,
0b11111111, 0b11011001,
0b11111111, 0b11011111,
0b11111111, 0b11011111,
0b11111111, 0b11011111,
0b10000000, 0b01011101,
0b11111111, 0b11111111,
0b01111101, 0b11111111,
0b01101100, 0b11000110
};
/*static const unsigned char noSymbol[] PROGMEM = {
0b00000000, 0b00000000,
0b00000000, 0b00000000,

View File

@ -16,9 +16,9 @@ extern Beacon *currentBeacon;
extern int menuDisplay;
extern bool symbolAvailable;
String symbolArray[5] = {"[", ">", "j", "b", "<"};
String symbolArray[8] = {"[", ">", "j", "b", "<", "s", "u"};
int symbolArraySize = sizeof(symbolArray)/sizeof(symbolArray[0]);
const uint8_t *symbolsAPRS[] = {runnerSymbol, carSymbol, jeepSymbol, bikeSymbol, motorcycleSymbol};
const uint8_t *symbolsAPRS[] = {runnerSymbol, carSymbol, jeepSymbol, bikeSymbol, motorcycleSymbol, shipSymbol, 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...