esp32_marauder/Display.cpp
// Function to setup hardware scroll for TFT screen
Function to setup hardware scroll for TFT screen
Function to setup hardware scroll for TFT screen
void Display::setupScrollArea(uint16_t tfa, uint16_t bfa) {
  Serial.println("setupScrollArea()");
  Serial.println("   tfa: " + (String)tfa);
  Serial.println("   bfa: " + (String)bfa);
  Serial.println("yStart: " + (String)this->yStart);
  tft.writecommand(0x33); 
  tft.writedata(tfa >> 8);           
  tft.writedata(tfa);
  tft.writedata((YMAX-tfa-bfa)>>8);  
  tft.writedata(YMAX-tfa-bfa);
  tft.writedata(bfa >> 8);           
  tft.writedata(bfa);
}
void Display :: setupScrollArea ( uint16_t tfa , uint16_t bfa ) { Serial . println ( " " ) ; Serial . println ( " " + ( String ) tfa ) ; Serial . println ( " " + ( String ) bfa ) ; Serial . println ( " " + ( String ) this -> yStart ) ; tft . writecommand ( 0x33 ) ; tft . writedata ( tfa >> 8 ) ; tft . writedata ( tfa ) ; tft . writedata ( ( YMAX - tfa - bfa ) >> 8 ) ; tft . writedata ( YMAX - tfa - bfa ) ; tft . writedata ( bfa >> 8 ) ; tft . writedata ( bfa ) ; }
Function to setup hardware scroll for TFT screen
Function to setup hardware scroll for TFT screen
/*ILI9341_VSCRDEF*/ // Vertical scroll definition // Top Fixed Area line count // Vertical Scrolling Area line count // Bottom Fixed Area line count