Hi arduino community,
I am new to arduino forum and trying to figure out the errors getting in one of the project. I am implementing IOT Touchscrren Thermostat
ESP8266 WiFi touch screen thermostat.
After placing libraries and code, i am getting several errors. Most of them are from DS1302RTC and timezone libraries. I am getting following errors upon compiling
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Mega 2560 or Mega ADK"
In file included from sketch_jan17b.ino:16:
C:\Users\RAZA\Documents\Arduino\libraries\DS1302RTC/DS1302RTC.h:95: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\DS1302RTC/DS1302RTC.h:96: error: 'time_t' has not been declared
C:\Users\RAZA\Documents\Arduino\libraries\DS1302RTC/DS1302RTC.h:97: error: 'tmElements_t' has not been declared
C:\Users\RAZA\Documents\Arduino\libraries\DS1302RTC/DS1302RTC.h:98: error: 'tmElements_t' has not been declared
In file included from sketch_jan17b.ino:18:
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:43: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:44: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:45: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:46: error: 'time_t' has not been declared
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:47: error: 'time_t' has not been declared
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:53: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:56: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:57: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:58: error: 'time_t' does not name a type
C:\Users\RAZA\Documents\Arduino\libraries\Timezone/Timezone.h:59: error: 'time_t' does not name a type
sketch_jan17b:42: error: 'time_t' does not name a type
sketch_jan17b:29: error: conflicting declaration 'uint8_t SevenSegNumFontPlus []'
C:\Users\RAZA\Documents\Arduino\libraries\SevenSegNumFontPlus/SevenSegNumFontPlus.h:8: error: 'SevenSegNumFontPlus' has a previous declaration as 'const uint8_t SevenSegNumFontPlus [2204]'
sketch_jan17b:31: error: conflicting declaration 'uint8_t SevenSeg_XXXL_Num []'
C:\Users\RAZA\Documents\Arduino\libraries\SevenSeg_XXXL_Num/SevenSeg_XXXL_Num.h:8: error: 'SevenSeg_XXXL_Num' has a previous declaration as 'const uint8_t SevenSeg_XXXL_Num [8004]'
sketch_jan17b:32: error: conflicting declaration 'uint8_t arial_normal []'
C:\Users\RAZA\Documents\Arduino\libraries\arial_normal/arial_normal.h:9: error: 'arial_normal' has a previous declaration as 'const uint8_t arial_normal [3044]'
sketch_jan17b.ino: In function 'void setup()':
sketch_jan17b:291: error: 'class DS1302RTC' has no member named 'get'
sketch_jan17b:291: error: 'setSyncProvider' was not declared in this scope
sketch_jan17b.ino: At global scope:
sketch_jan17b:935: error: 'time_t' does not name a type
sketch_jan17b.ino: In function 'void UpdateHeaterStatus()':
sketch_jan17b:963: error: invalid conversion from 'const uint8_t*' to 'uint8_t*'
sketch_jan17b:963: error: initializing argument 1 of 'void UTFT::setFont(uint8_t*)'
sketch_jan17b.ino: In function 'void UpdateSetTemp()':
sketch_jan17b:992: error: 'time_t' was not declared in this scope
sketch_jan17b:992: error: expected;' before 't' sketch_jan17b.ino: In function 'void DrawScreenDatetime()': sketch_jan17b:2051: error: 'time_t' was not declared in this scope sketch_jan17b:2051: error: expected
;' before 't'
sketch_jan17b:2055: error: 't' was not declared in this scope
sketch_jan17b:2055: error: 'hour' was not declared in this scope
sketch_jan17b:2056: error: 'minute' was not declared in this scope
sketch_jan17b:2058: error: 'month' was not declared in this scope
sketch_jan17b:2059: error: 'day' was not declared in this scope
sketch_jan17b:2060: error: 'year' was not declared in this scope
sketch_jan17b:2068: error: invalid conversion from 'const uint8_t*' to 'uint8_t*'
sketch_jan17b:2068: error: initializing argument 1 of 'void UTFT::setFont(uint8_t*)'
sketch_jan17b.ino: In function 'void SetTime()':any help will be greatly appreciated. Thanks