src/functions/drawFunctions.h
/**
 * The screen that is displayed when the ESP has just booted
 * and is connecting to WiFi & AWS.
 */
The screen that is displayed when the ESP has just booted
and is connecting to WiFi & AWS.
The screen that is displayed when the ESP has just booted and is connecting to WiFi & AWS .
void drawBootscreen(){
  #ifdef  DEVKIT1
  byte X = 14;
  byte Y = 70;
  byte WIDTH = 6;
  byte MAX_HEIGHT = 35;
  byte HEIGHT_STEP = 10;
  byte X_SPACING = 10;
  display.fillRect(X              , Y, WIDTH, MAX_HEIGHT - HEIGHT_STEP*3);
  display.fillRect(X + X_SPACING  , Y - HEIGHT_STEP, WIDTH, MAX_HEIGHT - HEIGHT_STEP*2);
  display.fillRect(X + X_SPACING*2, Y - HEIGHT_STEP*2, WIDTH, MAX_HEIGHT - HEIGHT_STEP);
  display.fillRect(X + X_SPACING*3, Y - HEIGHT_STEP*3, WIDTH, MAX_HEIGHT);
  display.setTextAlignment(TEXT_ALIGN_CENTER);
  display.setFont(ArialMT_Plain_16);
  display.drawString(0, Y + MAX_HEIGHT / 2 ,"Connecting" );
  if(gDisplayValues.currentState == CONNECTING_WIFI){
    display.drawString(0, Y + MAX_HEIGHT / 2 ,"   WiFi" );
  }
  if(gDisplayValues.currentState == CONNECTING_AWS){
    display.drawString(0, Y + MAX_HEIGHT / 2 ,"   AWS" );
  }
 #endif
}
void drawBootscreen ( ) { #ifdef DEVKIT1 byte X = 14 ; byte Y = 70 ; byte WIDTH = 6 ; byte MAX_HEIGHT = 35 ; byte HEIGHT_STEP = 10 ; byte X_SPACING = 10 ; display . fillRect ( X , Y , WIDTH , MAX_HEIGHT - HEIGHT_STEP * 3 ) ; display . fillRect ( X + X_SPACING , Y - HEIGHT_STEP , WIDTH , MAX_HEIGHT - HEIGHT_STEP * 2 ) ; display . fillRect ( X + X_SPACING * 2 , Y - HEIGHT_STEP * 2 , WIDTH , MAX_HEIGHT - HEIGHT_STEP ) ; display . fillRect ( X + X_SPACING * 3 , Y - HEIGHT_STEP * 3 , WIDTH , MAX_HEIGHT ) ; display . setTextAlignment ( TEXT_ALIGN_CENTER ) ; display . setFont ( ArialMT_Plain_16 ) ; display . drawString ( 0 , Y + MAX_HEIGHT / 2 , " " ) ; if ( gDisplayValues . currentState == CONNECTING_WIFI ) { display . drawString ( 0 , Y + MAX_HEIGHT / 2 , " " ) ; } if ( gDisplayValues . currentState == CONNECTING_AWS ) { display . drawString ( 0 , Y + MAX_HEIGHT / 2 , " " ) ; } #endif }
The screen that is displayed when the ESP has just booted
 and is connecting to WiFi & AWS.
The screen that is displayed when the ESP has just booted and is connecting to WiFi & AWS .