troy board added

This commit is contained in:
richonguzman 2025-01-07 16:33:18 -03:00
parent 2026dd2ed2
commit 371317c352
4 changed files with 10 additions and 9 deletions

View File

@ -77,6 +77,8 @@ jobs:
chip: esp32c3
- name: QRPLabs_LightTracker_Plus_1_0
chip: esp32s3
- name: TROY_LoRa_APRS
chip: esp32
steps:
- uses: actions/checkout@v3

View File

@ -53,6 +53,7 @@ ____________________________________________________
____________________________________________________
## Timeline (Versions):
- 2025.01.07 TROY_LoRa_APRS board added.
- 2025.01.02 Buttons added for DIY Boards and Boards without buttons.
- 2024.11.13 Added Heltec Wireless Stick Lite V3 + GPS + Oled Display support for another DIY ESP32 Tracker.
- 2024.11.13 T-Deck Joystick and Button Pressing Fix for smother operation.

View File

@ -57,7 +57,7 @@ TinyGPSPlus gps;
BluetoothSerial SerialBT;
#endif
String versionDate = "2025.01.06";
String versionDate = "2025.01.07";
uint8_t myBeaconsIndex = 0;
int myBeaconsSize = Config.beacons.size();

View File

@ -88,7 +88,7 @@ bool symbolAvailable = true;
extern logging::Logger logger;
#if defined(HAS_TFT) && (defined(TTGO_T_DECK_PLUS) || defined(TTGO_T_DECK_GPS))
#if defined(HAS_TFT) && (defined(TTGO_T_DECK_GPS) || defined(TTGO_T_DECK_PLUS))
void drawButton(int xPos, int yPos, int wide, int height, String buttonText, int color) {
uint16_t baseColor, lightColor, darkColor;
switch (color) {
@ -323,7 +323,7 @@ void displaySetup() {
//analogWrite(BOARD_BL_PIN, brightnessValues[tftBrightness]);
tft.setTextFont(0);
tft.fillScreen(TFT_BLACK);
#if defined(TTGO_T_DECK_PLUS) || defined(TTGO_T_DECK_GPS)
#if defined(TTGO_T_DECK_GPS) || defined(TTGO_T_DECK_PLUS)
sprite.createSprite(320,240);
#else
sprite.createSprite(160,80);
@ -345,14 +345,12 @@ void displaySetup() {
#ifdef ssd1306
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3c, false, false)) {
logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "SSD1306", "allocation failed!");
while (true) {
}
while (true) {}
}
#else
if (!display.begin(0x3c, false)) {
logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "SH1106", "allocation failed!");
while (true) {
}
while (true) {}
}
#endif
if (Config.display.turn180) display.setRotation(2);
@ -400,7 +398,7 @@ void displayToggle(bool toggle) {
void displayShow(const String& header, const String& line1, const String& line2, int wait) {
#ifdef HAS_TFT
#if defined(TTGO_T_DECK_PLUS) || defined(TTGO_T_DECK_GPS)
#if defined(TTGO_T_DECK_GPS) || defined(TTGO_T_DECK_PLUS)
draw_T_DECK_Top();
String tftLine1, tftLine2, tftLine3, tftLine4;
if (line1.length() > 22 && line2.length() > 22) {
@ -492,7 +490,7 @@ void drawSymbol(int symbolIndex, bool bluetoothActive) {
void displayShow(const String& header, const String& line1, const String& line2, const String& line3, const String& line4, const String& line5, int wait) {
#ifdef HAS_TFT
#if defined(TTGO_T_DECK_GPS) || defined(TTGO_T_DECK_PLUS)
draw_T_DECK_Top();//header, line1, line2);
draw_T_DECK_Top();
draw_T_DECK_Body(header, line1, line2, line3, line4, line5);
#endif
#if defined(HELTEC_WIRELESS_TRACKER)