esp32_marauder/Display.cpp
// Function to prepare the display and the menus
Function to prepare the display and the menus
Function to prepare the display and the menus
void Display::RunSetup()
{
  run_setup = false;
  display_buffer = new LinkedList<String>();
  tft.setRotation(0); 
  tft.setCursor(0, 0);
  clearScreen();
  auto currentPanel = tft.getPanel();
  Serial.println("SPI_FREQUENCY: " + (String)((int)getApbFrequency()>>1));
  Serial.println("SPI_READ_FREQUENCY: " + (String)currentPanel->freq_read);
  Serial.println("SPI_TOUCH_FREQUENCY: " + (String)2000000);
  if (!SPIFFS.begin()) {
    Serial.println("SPIFFS initialisation failed!");
    while (1) yield(); 
  }
}
void Display :: RunSetup ( ) { run_setup = false ; display_buffer = new LinkedList < String > ( ) ; tft . setRotation ( 0 ) ; tft . setCursor ( 0 , 0 ) ; clearScreen ( ) ; auto currentPanel = tft . getPanel ( ) ; Serial . println ( " " + ( String ) ( ( int ) getApbFrequency ( ) >> 1 ) ) ; Serial . println ( " " + ( String ) currentPanel -> freq_read ) ; Serial . println ( " " + ( String ) 2000000 ) ; if ( ! SPIFFS . begin ( ) ) { Serial . println ( " " ) ; while ( 1 ) yield ( ) ; } }
Function to prepare the display and the menus
Function to prepare the display and the menus
// Need to declare new // Portrait //tft.setFreeFont(&FreeMonoBold9pt7b); // Calibration data //TODO: unfreeze touch calibration data from NVS or run calibration //tft.setTouchCalibrate(calData); // Initialize file system // This should probably have its own class // Stay here twiddling thumbs waiting // Draw the title screen //drawJpeg("/marauder3L.jpg", 0 , 0);     // 240 x 320 image //showCenterText(version_number, 250); //tft.drawCentreString(version_number, 120, 250, 2); //digitalWrite(TFT_BL, HIGH); //delay(5000);