drawFrame was not declared in this scope

Hi there. I'm compiling a coding that related to touch screen and arduino mega2560(dfplayer and ds3231 too).Currently when I compile my coding, the 'drawFrame' error kept popping up and I don't know what is the problem there. it says " 'drawFrame' was not declared in this scope ". Can somebody explain what could be error be?

Im really greatful for your help since this is for my school project

thanks in advance!

here's the code.You also can point out the other mistakes i made .Thank you i do really appreciate it









#include <UTFT.h>
#include <URTouch.h>
#include <SoftwareSerial.h>
#include <DFRobotDFPlayerMini.h>
#include <DS3231.h>
#include <LiquidCrystal.h>


//==== Creating Objects
UTFT     myGLCD(SSD1289, 38, 39, 40, 41); //Parameters should be adjusted to your Display/Schield model
URTouch  myTouch( 6, 5, 4, 3, 2);


SoftwareSerial mp3Serial(11, 10);  // RX, TX
DFRobotDFPlayerMini myDFPlayer;
DS3231  rtc(SDA, SCL);

//==== Defining Fonts
extern uint8_t SmallFont[];
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];

extern unsigned int MusicPlayerButton[0x1040];
extern unsigned int AlarmButton[0x1040];
extern unsigned int ButtonPlay[0x1AE9];
extern unsigned int ButtonPause[0x1AE9];
extern unsigned int PreviousButton[0x9C4];
extern unsigned int NextButton[0x9C4];
extern unsigned int VolumeDown[0x170];
extern unsigned int VolumeUp[0x3B8];

int x, y; // Variables for the coordinates where the display has been pressed
char currentPage, playStatus;
int iV = 15;
int trackNum = 1;
int b = 16;
int aHours = 0;
int aMinutes = 0;
boolean alarmNotSet = true;
String alarmString = "";
float currentTemperature, temperature;
static word totalTime, elapsedTime, playback, minutes, seconds, lastSeconds, minutesR, secondsR;
String currentClock, currentHours, currentMinutes, currentSeconds, currentDate;
String timeString, hoursString, minutesString, secondsString, hoursS, minutesS, secondsS, dateS;

void setup() {
  // Initiate display
  myGLCD.InitLCD();
  myGLCD.clrScr();
  myTouch.InitTouch();
  myTouch.setPrecision(PREC_MEDIUM);

  // Initialize the rtc object
  rtc.begin();

  // Music
  Serial.begin(9600);  // set serial monitor baud rate to Arduino IDE
  mp3Serial.begin(9600);  // DFRobotDFPlayerMini
void setup();{} 
  setup(); ; // DFRobotDFPlayerMini myDFPlayer library which serial port to use.
  delay(800);  // allow time for DFRobotDFPlayerMini myDFPlayer cold boot; may adjust depending on flash storage size
  
 void drawHomeScreen();  // Draws the Home Screen
  currentPage = '0'; // Indicates that we are at Home Screen
  playStatus = '0';

  myDFPlayer.volume(15);//Set volume value
  delay(100);
  currentTemperature = rtc.getTemp();
  currentDate = rtc.getDateStr();
  currentClock = rtc.getTimeStr();
  timeString = rtc.getTimeStr();
  currentHours = timeString.substring(0, 2);
  currentMinutes = timeString.substring(3, 5);
  currentSeconds = timeString.substring(6, 8);
}


void loop() 
  // Homes Screen 
{ if (currentPage == '0') 
    // Checks for change of the clock
    if ( currentClock != rtc.getTimeStr()) {
      timeString = rtc.getTimeStr();
      hoursS = timeString.substring(0, 2);
      minutesS = timeString.substring(3, 5);
      secondsS = timeString.substring(6, 8);

      myGLCD.setFont(SevenSegNumFont);
      myGLCD.setColor(0, 255, 0);

      myGLCD.print(secondsS, 224, 50);
      
      if ( currentMinutes != minutesS ) {
        myGLCD.print(minutesS, 128, 50);
        currentMinutes = minutesS;
      }
      if ( currentHours != hoursS ) {
        myGLCD.print(hoursS, 32, 50);
        currentHours = hoursS;
      }
      // Checks for change of the date
      dateS = rtc.getDateStr();
      delay(10);
      if ( currentDate != dateS){
          myGLCD.setColor(255, 255, 255); // Sets color to white
          myGLCD.setFont(BigFont); // Sets font to big
          myGLCD.print(rtc.getDateStr(), 153, 7);
        }
      // Checks for change of the temperature
      temperature = rtc.getTemp();
      delay(10);
      if ( currentTemperature != temperature ){
        myGLCD.setColor(255, 255, 255); // Sets color to white
        myGLCD.setFont(BigFont); // Sets font to big
        myGLCD.printNumI(temperature, 39, 7);
        currentTemperature = temperature;
      }
      delay(10);
      currentClock = rtc.getTimeStr();
    }
    // Checks whether the screen has been touched
  {  if (myTouch.dataAvailable()) {
      myTouch.read();
      x = myTouch.getX(); // X coordinate where the screen has been pressed
      y = myTouch.getY(); // Y coordinates where the screen has been pressed
      // If we press the Music Player Button
  {   if ((x >= 55) && (x <= 120) && (y >= 125) && (y <= 190)) {
         drawFrame(87, 157, 33);
          currentPage = '1';
          myGLCD.clrScr();
          delay(100);
          drawMusicPlayerScreen();
          delay(100);
        }
      // If we press the Alarm Button
  {   if ((x >= 195) && (x <= 260) && (y >= 125) && (y <= 190)) 
          drawFrame(227, 160, 29);
          currentPage = '2';
          myGLCD.clrScr();
        }
    }
  }

  }
  
  // Music Player Screen
 void 
{  if (currentPage == '1') {
    if (myTouch.dataAvailable()) {
      myTouch.read();
      x = myTouch.getX(); // X coordinate where the screen has been pressed
      y = myTouch.getY(); // Y coordinates where the screen has been pressed
      // If we press the Play Button
      if ((x >= 116) && (x <= 204) && (y >= 77) && (y <= 165)) {
        if (playStatus == '0') {
         drawFrame(159, 121, 42);
          drawPauseButton();
          myDFPlayer.playTrackFromFolder(00, 001);
          delay(100);
          playStatus = '2';
          return;
        }
        if (playStatus == '1') {
         drawFrame(159, 121, 42);
          drawPauseButton();
          myDFPlayer.play();
          delay(100);
          playStatus = '2';
          return;
        }
        if (playStatus == '2') {
        drawFrame(159, 121, 42);
          drawPlayButton();
          myDFPlayer.pause();
          delay(100);
          playStatus = '1';
          return;
        }
      }
      // If we press the Previous Button
      if ((x >= 45) && (x <= 95) && (y >= 97) && (y <= 147)) {
        drawFrame(70, 121, 26);
        myDFPlayer.previousTrack();
        delay(100);
        drawTrackBar();
      }
      // If we press the Next Button
      if ((x >= 227) && (x <= 277) && (y >= 97) && (y <= 147)) {
        drawFrame(252, 122, 26);
        myDFPlayer.nextTrack();
        delay(100);
        drawTrackBar();
      }
      // If we press the VolumeDown Button
      if ((x >= 35) && (x <= 75) && (y >= 165) && (y <= 209)) {
        drawUnderline(45, 205, 65, 205);
        if (iV >= 0 & iV <= 30) {
          iV--;
          drawVolume(iV);
        }
        myDFPlayer.decreaseVolume();
        delay(100);
      }
      // If we press the VolumeUp Button
      if ((x >= 230) && (x <= 280) && (y >= 165) && (y <= 209)) {
        drawUnderline(235, 205, 275, 205);
        if (iV >= 0 & iV <= 30) {
          iV++;
          drawVolume(iV);
        }
        myDFPlayer.increaseVolume();
        delay(100);
      }
      // If we press the MENU Button
      if ((x >= 0) && (x <= 75) && (y >= 0) && (y <= 30)) {
        myGLCD.clrScr();
        drawHomeScreen();  // Draws the Home Screen
        currentPage = '0';
        return;
      }
    }
    // Updates the track bar
    if (playStatus == '1' || playStatus == '2') {
      trackPlayTime();
    }
    // Printing the clock in the upper right corner
    myGLCD.setFont(BigFont);
    myGLCD.setColor(255, 255, 255);
    printClock(187, 5);
  }
  // Alarm Clock Screen
  if (currentPage == '2') {
    myGLCD.setFont(BigFont);
    myGLCD.setColor(255, 255, 255);
    myGLCD.print("MENU", 5, 5);
    myGLCD.print("Set Alarm", CENTER, 20);
    
    // Draws a colon between the hours and the minutes
    myGLCD.setColor(0, 255, 0);
    myGLCD.fillCircle (112, 65, 4);
    myGLCD.setColor(0, 255, 0);
    myGLCD.fillCircle (112, 85, 4);

    myGLCD.setFont(SevenSegNumFont);
    myGLCD.setColor(0, 255, 0);
    myGLCD.printNumI(aHours, 32, 50, 2, '0');
    myGLCD.printNumI(aMinutes, 128, 50, 2, '0');
    myGLCD.setColor(255, 255, 255);
    myGLCD.drawRoundRect (42, 115, 82, 145);
    myGLCD.drawRoundRect (138, 115, 178, 145);
    myGLCD.setFont(BigFont);    
    myGLCD.print("H", 54, 122);
    myGLCD.print("M", 150, 122);
    
    myGLCD.drawRoundRect (215, 60, 303, 90);
    myGLCD.print("SET", 236, 67);
    myGLCD.drawRoundRect (215, 115, 303, 145);
    myGLCD.print("CLEAR", 220, 122);
    
    alarmNotSet = true;
        
    while (alarmNotSet){
      if (myTouch.dataAvailable()) {
        myTouch.read();
        x = myTouch.getX(); // X coordinate where the screen has been pressed
        y = myTouch.getY(); // Y coordinates where the screen has been pressed
        //Set hours button
        if ((x >= 42) && (x <= 82) && (y >= 115) && (y <= 145)) {
          drawRectFrame(42, 115, 82, 145);
          aHours++;
          if(aHours >=24){
            aHours = 0;
          }
          myGLCD.setFont(SevenSegNumFont);
          myGLCD.setColor(0, 255, 0);
          myGLCD.printNumI(aHours, 32, 50, 2, '0');
        }
        // Set minutes buttons
        if ((x >= 138) && (x <= 178) && (y >= 115) && (y <= 145)) {
          drawRectFrame(138, 115, 178, 145);
          aMinutes++;
          if(aMinutes >=60){
            aMinutes = 0;
          }
          myGLCD.setFont(SevenSegNumFont);
          myGLCD.setColor(0, 255, 0);
          myGLCD.printNumI(aMinutes, 128, 50, 2, '0');
      }
      // Set alarm button
      if ((x >= 215) && (x <= 303) && (y >= 60) && (y <= 80)) {
        drawRectFrame(215, 60, 303, 90);
        if (aHours < 10 && aMinutes < 10){
          alarmString = "0"+(String)aHours + ":" + "0"+ (String)aMinutes + ":" + "00";
        }
        else if (aHours < 10 && aMinutes > 9){
          alarmString = "0"+(String)aHours + ":" + (String)aMinutes + ":" + "00";
        }
        else if (aHours > 9 && aMinutes < 10){
          alarmString = (String)aHours + ":" + "0"+ (String)aMinutes + ":" + "00";
        }
        else {
          alarmString = (String)aHours + ":" + (String)aMinutes + ":" + "00";
        }
        myGLCD.setFont(BigFont);
        myGLCD.print("Alarm set for:", CENTER, 165);
        myGLCD.print(alarmString, CENTER, 191);
      
      }
      // Clear alarm button
      if ((x >= 215) && (x <= 303) && (y >= 115) && (y <= 145)) {
        drawRectFrame(215, 115, 303, 145);
        alarmString="";
        myGLCD.setColor(0, 0, 0);
        myGLCD.fillRect(45, 165, 275, 210); 
      }
      // If we press the MENU Button
      if ((x >= 0) && (x <= 75) && (y >= 0) && (y <= 30)) {
        alarmNotSet = false;
        currentPage = '0';
        myGLCD.clrScr();
        drawHomeScreen();  // Draws the Home Screen
      }    
      }
    }
        
    }
    // Alarm activation     
    if (alarmNotSet == false) {
      if (alarmString == rtc.getTimeStr()){
        myGLCD.clrScr();
        myDFPlayer.setVolume(25);
        myDFPlayer.playTrackByIndexNumber(1);
        delay(100);
        myGLCD.setFont(BigFont);
        myGLCD.setColor(255, 255, 255);
        myGLCD.print("ALARM", CENTER, 90);
        myGLCD.drawBitmap (127, 10, 65, 64, AlarmButton);
        myGLCD.print(alarmString, CENTER, 114);
        myGLCD.drawRoundRect (94, 146, 226, 170);
        myGLCD.print("DISMISS", CENTER, 150);
        boolean alarmOn = true;
        while (alarmOn){
          if (myTouch.dataAvailable()) {
          myTouch.read();
          x = myTouch.getX(); // X coordinate where the screen has been pressed
          y = myTouch.getY(); // Y coordinates where the screen has been pressed
          
          // Stop alarm button
          if ((x >= 94) && (x <= 226) && (y >= 146) && (y <= 170)) {
          drawRectFrame(94, 146, 226, 170);
          alarmOn = false;
          alarmString="";
          myGLCD.clrScr();
          myDFPlayer.stopPlayback();
          delay(100);
          currentPage = '0';
          playStatus = '0';
          myDFPlayer.setVolume(15);  
          drawHomeScreen();
          }
      
      }
        }
      }
    }
}

void drawHomeScreen() 
  myGLCD.setBackColor(0, 0, 0); // Sets the background color of the area where the text will be printed to black
  myGLCD.setColor(255, 255, 255); // Sets color to white
  myGLCD.setFont(BigFont); // Sets font to big
  myGLCD.print(rtc.getDateStr(), 153, 7);
  myGLCD.print("T:", 7, 7);
  myGLCD.printNumI(rtc.getTemp(), 39, 7);
  myGLCD.print("C", 82, 7);
  myGLCD.setFont(SmallFont);
  myGLCD.print("o", 74, 5);
{  if (alarmString == "" ) {
    myGLCD.setColor(255, 255, 255);
    myGLCD.print("n u h a f a", CENTER, 215);
  }
  else {
    myGLCD.setColor(255, 255, 255);
    myGLCD.print("Alarm set for: ", 68, 215);
    myGLCD.print(alarmString, 188, 215);
  }
  drawMusicPlayerButton();
  drawAlarmButton();
  drawHomeClock();
}

void drawMusicPlayerScreen() 
  // Title
  myGLCD.setBackColor(0, 0, 0); // Sets the background color of the area where the text will be printed to black
  myGLCD.setColor(255, 255, 255); // Sets color to white
  myGLCD.setFont(BigFont); // Sets font to big
  myGLCD.print("MENU", 5, 5); // Prints the string on the screen
  myGLCD.setColor(255, 0, 0); // Sets color to red
  myGLCD.drawLine(0, 26, 319, 26); // Draws the red line

  myGLCD.setColor(255, 255, 255); // Sets color to white
  myGLCD.setFont(SmallFont); // Sets font to big
  myGLCD.print("n u h a f a", CENTER, 215); // Prints the string on the screen

  // Volume Bar
  myGLCD.setColor(255, 255, 255);
  myGLCD.fillRect (78, 184, 78 + 150, 184 + 8);
  myGLCD.setColor(240, 196, 30);
  myGLCD.fillRect (78, 184, 78 + 75, 184 + 8);

  // Track Bar
  myGLCD.setColor(255, 255, 255);
  myGLCD.fillRect (48, 50, 48 + 224, 50 + 8);
  myGLCD.setFont(SmallFont);
  myGLCD.setColor(255, 255, 255);
  myGLCD.print("0:00", 8, 48);
  myGLCD.print("-0:00", 276, 48);

  drawPlayButton();
{  if (playStatus == '2') {
    drawPauseButton();
  }
  drawPreviousButton();
  drawNextButton();
  drawVolumeDown();
  drawVolumeUp();
}

void drawMusicPlayerButton() 
  myGLCD.drawBitmap (55, 125, 65, 64, MusicPlayerButton);
}
void drawAlarmButton() 
  myGLCD.drawBitmap (195, 125, 65, 64, AlarmButton);
}
void drawPlayButton() 
  myGLCD.drawBitmap (118, 79, 83, 83, ButtonPlay);
}
void drawPauseButton() 
  myGLCD.drawBitmap (118, 79, 83, 83, ButtonPause);
}
void drawNextButton() 
  myGLCD.drawBitmap (227, 97, 50, 50, NextButton);
}
void drawPreviousButton() 
  myGLCD.drawBitmap (45, 97, 50, 50, PreviousButton);
}
void drawVolumeDown() 
  myGLCD.drawBitmap (50, 177, 16, 23, VolumeDown);
}
void drawVolumeUp() 
  myGLCD.drawBitmap (241, 175, 34, 28, VolumeUp);
}
// check for if Mp3 Player is stopped
bool checkFor_mp3IsStopped() 
  if (mp3Serial.available() > 0) {
    if (myDFPlayer.getPlaybackStatus() == 0) {
      return true;
    }
  }
  else return false;
}

// Highlights the button when pressed
void drawFrame(int x, int y, int r) 
  myGLCD.setColor(255, 0, 0);
  myGLCD.drawCircle (x, y, r);
  while (myTouch.dataAvailable())
    myTouch.read();
  myGLCD.setColor(0, 0, 0);
  myGLCD.drawCircle (x, y, r);
}
void drawRectFrame(int x1, int y1, int x2, int y2) 
  myGLCD.setColor(255, 0, 0);
  myGLCD.drawRoundRect (x1, y1, x2, y2);
  while (myTouch.dataAvailable())
    myTouch.read();
  myGLCD.setColor(255, 255, 255);
  myGLCD.drawRoundRect (x1, y1, x2, y2);
}
void drawUnderline(int x1, int y1, int x2, int y2) 
  myGLCD.setColor(255, 0, 0);
  myGLCD.drawLine (x1, y1, x2, y2);
  while (myTouch.dataAvailable())
    myTouch.read();
  myGLCD.setColor(0, 0, 0);
  myGLCD.drawLine (x1, y1, x2, y2);
}

// Sound bar
void drawVolume(int x) 
  myGLCD.setColor(255, 255, 255);
  myGLCD.fillRect (78 + 5 * x, 184, 78 + 150, 184 + 8);
  myGLCD.setColor(240, 196, 30);
  myGLCD.fillRect (78, 184, 78 + 5 * x, 184 + 8);
}

// Clears the track bar
void drawTrackBar() 
  myGLCD.setColor(255, 255, 255);
  myGLCD.fillRect (48, 50, 48 + 224, 50 + 8);
}
// Updates the track bar
void trackPlayTime() 
  totalTime = myDFPlayer.getTotalTrackPlaybackTime();
  delay(10);
  elapsedTime = myDFPlayer.getElapsedTrackPlaybackTime();
  delay(10);
  minutes = (int)elapsedTime / 60;
  seconds = (((float)elapsedTime / 60) - minutes) * 60;
  playback = totalTime - elapsedTime;
  minutesR = (int)playback / 60;
  secondsR = (((float)playback / 60) - minutesR) * 60;

  myGLCD.setFont(SmallFont);
  myGLCD.setColor(255, 255, 255);
  myGLCD.printNumI(minutes, 8, 48);

  myGLCD.print(":", 16, 48);
  myGLCD.printNumI((int)seconds, 24, 48, 2, '0');

  myGLCD.print("-", 276, 48);
  myGLCD.printNumI(minutesR, 284, 48);
  myGLCD.print(":", 292, 48);
  myGLCD.printNumI((int)secondsR, 300, 48, 2, '0');

  int trackBarX = map(elapsedTime, 0, totalTime, 0, 224);
  myGLCD.setColor(255, 0, 0);
  myGLCD.fillRect (48, 50, 48 + trackBarX, 50 + 8);

  if (totalTime == elapsedTime) {
    myDFPlayer.nextTrack();
    delay(30);
    myGLCD.setColor(255, 255, 255);
    myGLCD.fillRect (48, 50, 48 + 224, 50 + 8);
  }
}

void printClock(int x, int y) 
  if ( currentClock != rtc.getTimeStr()) {
    myGLCD.print(rtc.getTimeStr(), x, y);
    currentClock = rtc.getTimeStr();
  }
}

void drawColon() {
  myGLCD.setColor(0, 255, 0);
  myGLCD.fillCircle (112, 65, 4);
  myGLCD.setColor(0, 255, 0);
  myGLCD.fillCircle (112, 85, 4);

  myGLCD.setColor(0, 255, 0);
  myGLCD.fillCircle (208, 65, 4);
  myGLCD.setColor(0, 255, 0);
  myGLCD.fillCircle (208, 85, 4);
}
void drawHomeClock() {
  timeString = rtc.getTimeStr();
  currentHours = timeString.substring(0, 2);
  currentMinutes = timeString.substring(3, 5);
  currentSeconds = timeString.substring(6, 8);
  myGLCD.setFont(SevenSegNumFont);
  myGLCD.setColor(0, 255, 0);
  myGLCD.print(currentSeconds, 224, 50);
  myGLCD.print(currentMinutes, 128, 50);
  myGLCD.print(currentHours, 32, 50);
  drawColon();
}

-actually i copied the code from somewhere and i change it a little since the used device arent same

Please copy the full error message using the "Copy error messages" button in the IDE and post it here in code tags

Arduino: 1.8.15 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"





















C:\Users\lenovo\Documents\hanis\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\lenovo\Documents\hanis\Arduino\hardware -tools C:\Users\lenovo\Documents\hanis\Arduino\tools-builder -tools C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -built-in-libraries C:\Users\lenovo\Documents\hanis\Arduino\libraries -libraries C:\Users\lenovo\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10815 -build-path C:\Users\lenovo\AppData\Local\Temp\arduino_build_185016 -warnings=none -build-cache C:\Users\lenovo\AppData\Local\Temp\arduino_cache_95370 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -verbose C:\Users\lenovo\Documents\Arduino\done\done.ino

C:\Users\lenovo\Documents\hanis\Arduino\arduino-builder -compile -logger=machine -hardware C:\Users\lenovo\Documents\hanis\Arduino\hardware -tools C:\Users\lenovo\Documents\hanis\Arduino\tools-builder -tools C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -built-in-libraries C:\Users\lenovo\Documents\hanis\Arduino\libraries -libraries C:\Users\lenovo\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10815 -build-path C:\Users\lenovo\AppData\Local\Temp\arduino_build_185016 -warnings=none -build-cache C:\Users\lenovo\AppData\Local\Temp\arduino_cache_95370 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\lenovo\Documents\hanis\Arduino\hardware\tools\avr -verbose C:\Users\lenovo\Documents\Arduino\done\done.ino

Using board 'mega' from platform in folder: C:\Users\lenovo\Documents\hanis\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Users\lenovo\Documents\hanis\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o nul

Alternatives for UTFT.h: [UTFT]

ResolveLibrary(UTFT.h)

  -> candidates: [UTFT]

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o nul

Alternatives for URTouch.h: [URTouch]

ResolveLibrary(URTouch.h)

  -> candidates: [URTouch]

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o nul

Alternatives for SoftwareSerial.h: [SoftwareSerial@1.0]

ResolveLibrary(SoftwareSerial.h)

  -> candidates: [SoftwareSerial@1.0]

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o nul

Alternatives for DFRobotDFPlayerMini.h: [DFRobotDFPlayerMini@1.0.5]

ResolveLibrary(DFRobotDFPlayerMini.h)

  -> candidates: [DFRobotDFPlayerMini@1.0.5]

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o nul

Alternatives for DS3231.h: [DS3231 DS3231]

ResolveLibrary(DS3231.h)

  -> candidates: [DS3231 DS3231]

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o nul

Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7]

ResolveLibrary(LiquidCrystal.h)

  -> candidates: [LiquidCrystal@1.0.7]

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o nul

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT\\DefaultFonts.c" -o nul

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o nul

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch\\URTouch.cpp" -o nul

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src\\SoftwareSerial.cpp" -o nul

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini\\DFRobotDFPlayerMini.cpp" -o nul

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231\\DS3231.cpp" -o nul

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src\\LiquidCrystal.cpp" -o nul

Generating function prototypes...

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\URTouch" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\hardware\\arduino\\avr\\libraries\\SoftwareSerial\\src" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DFRobotDFPlayerMini" "-IC:\\Users\\lenovo\\Documents\\Arduino\\libraries\\DS3231" "-IC:\\Users\\lenovo\\Documents\\hanis\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp" -o "C:\\Users\\lenovo\\AppData\\Local\\Temp\\arduino_build_185016\\sketch\\done.ino.cpp.o"

C:\Users\lenovo\Documents\Arduino\done\done.ino: In function 'void loop()':

done:147:10: error: 'drawFrame' was not declared in this scope

          drawFrame(87, 157, 33);

          ^~~~~~~~~

done:151:11: error: 'drawMusicPlayerScreen' was not declared in this scope

           drawMusicPlayerScreen();

           ^~~~~~~~~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:151:11: note: suggested alternative: 'MusicPlayerButton'

           drawMusicPlayerScreen();

           ^~~~~~~~~~~~~~~~~~~~~

           MusicPlayerButton

done:156:11: error: 'drawFrame' was not declared in this scope

           drawFrame(227, 160, 29);

           ^~~~~~~~~

done:167:1: error: compound literal of non-object type 'void'

 {  if (currentPage == '1') {

 ^

done:166:2: error: expected primary-expression before 'void'

  void

  ^~~~

done:388:3: error: expected initializer before 'myGLCD'

   myGLCD.setBackColor(0, 0, 0); // Sets the background color of the area where the text will be printed to black

   ^~~~~~

done:406:3: error: 'drawMusicPlayerButton' was not declared in this scope

   drawMusicPlayerButton();

   ^~~~~~~~~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:406:3: note: suggested alternative: 'MusicPlayerButton'

   drawMusicPlayerButton();

   ^~~~~~~~~~~~~~~~~~~~~

   MusicPlayerButton

done:407:3: error: 'drawAlarmButton' was not declared in this scope

   drawAlarmButton();

   ^~~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:407:3: note: suggested alternative: 'AlarmButton'

   drawAlarmButton();

   ^~~~~~~~~~~~~~~

   AlarmButton

done:408:3: error: 'drawHomeClock' was not declared in this scope

   drawHomeClock();

   ^~~~~~~~~~~~~

done:413:3: error: expected initializer before 'myGLCD'

   myGLCD.setBackColor(0, 0, 0); // Sets the background color of the area where the text will be printed to black

   ^~~~~~

done:438:3: error: 'drawPlayButton' was not declared in this scope

   drawPlayButton();

   ^~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:438:3: note: suggested alternative: 'PreviousButton'

   drawPlayButton();

   ^~~~~~~~~~~~~~

   PreviousButton

done:440:5: error: 'drawPauseButton' was not declared in this scope

     drawPauseButton();

     ^~~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:440:5: note: suggested alternative: 'PreviousButton'

     drawPauseButton();

     ^~~~~~~~~~~~~~~

     PreviousButton

done:442:3: error: 'drawPreviousButton' was not declared in this scope

   drawPreviousButton();

   ^~~~~~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:442:3: note: suggested alternative: 'PreviousButton'

   drawPreviousButton();

   ^~~~~~~~~~~~~~~~~~

   PreviousButton

done:443:3: error: 'drawNextButton' was not declared in this scope

   drawNextButton();

   ^~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:443:3: note: suggested alternative: 'NextButton'

   drawNextButton();

   ^~~~~~~~~~~~~~

   NextButton

done:444:3: error: 'drawVolumeDown' was not declared in this scope

   drawVolumeDown();

   ^~~~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:444:3: note: suggested alternative: 'VolumeDown'

   drawVolumeDown();

   ^~~~~~~~~~~~~~

   VolumeDown

done:445:3: error: 'drawVolumeUp' was not declared in this scope

   drawVolumeUp();

   ^~~~~~~~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino:445:3: note: suggested alternative: 'VolumeUp'

   drawVolumeUp();

   ^~~~~~~~~~~~

   VolumeUp

done:449:3: error: expected initializer before 'myGLCD'

   myGLCD.drawBitmap (55, 125, 65, 64, MusicPlayerButton);

   ^~~~~~

C:\Users\lenovo\Documents\Arduino\done\done.ino: At global scope:

done:452:3: error: expected initializer before 'myGLCD'

   myGLCD.drawBitmap (195, 125, 65, 64, AlarmButton);

   ^~~~~~

done:453:1: error: expected declaration before '}' token

 }

 ^

Multiple libraries were found for "DS3231.h"

 Used: C:\Users\lenovo\Documents\Arduino\libraries\DS3231

 Not used: C:\Users\lenovo\Documents\hanis\Arduino\libraries\DS3231

Using library UTFT in folder: C:\Users\lenovo\Documents\Arduino\libraries\UTFT (legacy)

Using library URTouch in folder: C:\Users\lenovo\Documents\Arduino\libraries\URTouch (legacy)

Using library SoftwareSerial at version 1.0 in folder: C:\Users\lenovo\Documents\hanis\Arduino\hardware\arduino\avr\libraries\SoftwareSerial 

Using library DFRobotDFPlayerMini at version 1.0.5 in folder: C:\Users\lenovo\Documents\Arduino\libraries\DFRobotDFPlayerMini 

Using library DS3231 in folder: C:\Users\lenovo\Documents\Arduino\libraries\DS3231 (legacy)

Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\lenovo\Documents\hanis\Arduino\libraries\LiquidCrystal 

exit status 1

'drawFrame' was not declared in this scope


is this right?

  // Music Player Screen
 void 
{  if (currentPage == '1') {
    if (myTouch.dataAvailable()) {

What is that void statement meant to do ?
Is there meant to be a function definition following it ?

i think its the music player screen in the lcd screen . im sorry i really dont know what's too but i will paste the link where i got the code so you might understand it more than me (plus you will see that i change the BY8001 to DFPlayer and it might be wrong though)im really sorry for troubling you

Part of the original code

// Music Player Screen
  if (currentPage == '1') {
    if (myTouch.dataAvailable()) {
      myTouch.read();

part of your code

  // Music Player Screen
 void 
{  if (currentPage == '1') {
    if (myTouch.dataAvailable()) {
      myTouch.read();

Spot the difference ?

yes thank you!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.