Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jun 27, 2024
1 parent 2cc679f commit e499d10
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,3 +474,41 @@ bool beginDisplay()
Serial.printf("Warning: Failed to find Display at 0x%0X address\n", DISPLAY_ADDR);
return false;
}


void printResult(bool radio_online)
{
Serial.print("Radio : ");
Serial.println((radio_online) ? "+" : "-");
Serial.print("PSRAM : ");
Serial.println((psramFound()) ? "+" : "-");
Serial.print("Display : ");
Serial.println(( u8g2) ? "+" : "-");
Serial.print("Sd Card : ");
Serial.println((SD.cardSize() != 0) ? "+" : "-");

#ifdef HAS_PMU
Serial.print("Power : ");
Serial.println(( PMU ) ? "+" : "-");
#endif


if (u8g2) {

u8g2->clearBuffer();
u8g2->setFont(u8g2_font_NokiaLargeBold_tf );
uint16_t str_w = u8g2->getStrWidth("T-ETH");
u8g2->drawStr((u8g2->getWidth() - str_w) / 2, 16, "T-ETH");
u8g2->drawHLine(5, 21, u8g2->getWidth() - 5);
u8g2->drawStr( 0, 38, "Disp:"); u8g2->drawStr( 45, 38, ( u8g2) ? "+" : "-");
u8g2->drawStr( 0, 54, "SD :"); u8g2->drawStr( 45, 54, (SD.cardSize() != 0) ? "+" : "-");
u8g2->drawStr( 62, 38, "Radio:"); u8g2->drawStr( 120, 38, ( radio_online ) ? "+" : "-");

#ifdef HAS_PMU
u8g2->drawStr( 62, 54, "Power:"); u8g2->drawStr( 120, 54, ( PMU ) ? "+" : "-");
#endif

u8g2->sendBuffer();

}
}
12 changes: 6 additions & 6 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ default_envs = T-ETH-ELite-ESP32S3

; ! Wire bus examples
; src_dir = examples/I2C_HP303BSensor
src_dir = examples/I2C_BME280Sensor
; src_dir = examples/I2C_BME280Sensor

; ! Serial examples
; src_dir = examples/TinyGPS_Example
Expand All @@ -70,11 +70,11 @@ src_dir = examples/I2C_BME280Sensor
; src_dir = examples/TFT_ILI9341_Shield

; ; !Only suitable for T-ETH-ELite-Shield
; src_dir = examples/T-ETH-ELite/LoRa_Receive_Interrupt
; src_dir = examples/T-ETH-ELite/LoRa_Transmit_Interrupt
; src_dir = examples/T-ETH-ELite/T-ETH-Elite-Gateway-Shield
; src_dir = examples/T-ETH-ELite/T-ETH-Elite-LTE-Shield
; src_dir = examples/T-ETH-ELite/T-ETH-Elite-LoRa-Shield
src_dir = examples/T-ETH-ELite-Shield/LoRa_Receive_Interrupt
; src_dir = examples/T-ETH-ELite-Shield/LoRa_Transmit_Interrupt
; src_dir = examples/T-ETH-ELite-Shield/T-ETH-Elite-Gateway-Shield
; src_dir = examples/T-ETH-ELite-Shield/T-ETH-Elite-LTE-Shield
; src_dir = examples/T-ETH-ELite-Shield/T-ETH-Elite-LoRa-Shield

[env]
platform = [email protected]
Expand Down

0 comments on commit e499d10

Please sign in to comment.