wfdudley / T-watch-2020

a watch project for the TTGO T-watch-2020 version 1
BSD 3-Clause "New" or "Revised" License
84 stars 27 forks source link

Got my first issue #18

Closed Therealjosephchrzempiec closed 3 years ago

Therealjosephchrzempiec commented 3 years ago

Hello i have i have tried to follow everything you wrote to the letter. however i get this error.

`In file included from C:\Users\jJcSystems\Documents\Arduino\libraries\AceTime-develop\src/AceTime.h:20:0, from C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino:26: C:\Users\jJcSystems\Documents\Arduino\libraries\AceTime-develop\src/ace_time/common/compat.h:78:25: fatal error: AceCommon.h: No such file or directory compilation terminated.

Multiple libraries were found for "WiFi.h" Used: C:\Users\jJcSystems\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi Not used: C:\Users\jJcSystems\Desktop\Bakup\12-24-2020\Desktop\arduino-1.8.3\libraries\WiFi exit status 1 Error compiling for board TTGO T-Watch.`

Joseph

Therealjosephchrzempiec commented 3 years ago

I do not se this file at all. The AceCommon.h

Joseph

wfdudley commented 3 years ago

The AceCommon library is required by the AceTime library. This is stated in my README.md. When I installed AceTime, the library manager automatically asked for permission to install AceCommon as well. So install it.

Therealjosephchrzempiec commented 3 years ago

Hello i didn't see the last part where the common part was missing in yor readme. But now i do have a new problem.

WARNING: Category 'other' in library OpenWeatherOneCall is not valid. Setting to 'Uncategorized'
In file included from C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino:33:0:

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master/DudleyWatch.h:44:8: error: 'RTC_Date' does not name a type

 EXTERN RTC_Date tnow;

        ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master/DudleyWatch.h:129:8: error: 'TFT_eSPI' does not name a type

 EXTERN TFT_eSPI *tft;

        ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master/DudleyWatch.h:130:8: error: 'AXP20X_Class' does not name a type

 EXTERN AXP20X_Class *power;

        ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master/DudleyWatch.h:230:8: error: 'TTGOClass' does not name a type

 EXTERN TTGOClass *ttgo;

        ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino: In function 'void update_step_counter()':

DudleyWatch:47: error: 'ttgo' was not declared in this scope

   step_counter = ttgo->bma->getCounter();

                  ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino: In function 'void resetStepCounter()':

DudleyWatch:51: error: 'ttgo' was not declared in this scope

   ttgo->bma->resetStepCounter();

   ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino: In function 'void bright_check()':

DudleyWatch:57: error: 'power' was not declared in this scope

   if (power->isVBUSPlug()) {

       ^

DudleyWatch:66: error: 'ttgo' was not declared in this scope

     ttgo->setBrightness(screen_brightness);       // 0-255

     ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino: In function 'void low_energy()':

DudleyWatch:78: error: 'ttgo' was not declared in this scope

     if (ttgo->bl->isOn()) {

         ^

DudleyWatch:95: error: 'AXP202_INT' was not declared in this scope

             erret = gpio_wakeup_enable ((gpio_num_t)AXP202_INT, GPIO_INTR_LOW_LEVEL);

                                                     ^

DudleyWatch:99: error: 'BMA423_INT1' was not declared in this scope

             erret = gpio_wakeup_enable ((gpio_num_t)BMA423_INT1, GPIO_INTR_HIGH_LEVEL);

                                                     ^

DudleyWatch:135: error: 'lv_disp_trig_activity' was not declared in this scope

         lv_disp_trig_activity(NULL);

                                   ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino: In function 'void Serial_timestamp()':

DudleyWatch:179: error: 'ttgo' was not declared in this scope

   Serial.printf("%s UTC\n", ttgo->rtc->formatDateTime());

                             ^

C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino: In function 'void setup()':

DudleyWatch:213: error: 'EEPROM_SIZE' was not declared in this scope

   EEPROM.begin(EEPROM_SIZE);

                ^

DudleyWatch:253: error: 'ttgo' was not declared in this scope

   ttgo = TTGOClass::getWatch();

   ^

DudleyWatch:253: error: 'TTGOClass' has not been declared

   ttgo = TTGOClass::getWatch();

          ^

DudleyWatch:255: error: 'tft' was not declared in this scope

   tft = ttgo->tft; // just a shorthand for ttgo->tft

   ^

DudleyWatch:256: error: 'power' was not declared in this scope

   power = ttgo->power; // just a shorthand for ttgo->power

   ^

DudleyWatch:258: error: 'TFT_BLACK' was not declared in this scope

   tft->fillScreen(TFT_BLACK);

                   ^

DudleyWatch:259: error: 'TFT_YELLOW' was not declared in this scope

   tft->setTextColor(TFT_YELLOW, TFT_BLACK); // Note: the new fonts do not draw the background colour

                     ^

DudleyWatch:264: error: 'AXP202_BATT_VOL_ADC1' was not declared in this scope

   power->adc1Enable(AXP202_BATT_VOL_ADC1 | AXP202_BATT_CUR_ADC1 | AXP202_VBUS_VOL_ADC1 | AXP202_VBUS_CUR_ADC1, AXP202_ON);

                     ^

DudleyWatch:264: error: 'AXP202_BATT_CUR_ADC1' was not declared in this scope

   power->adc1Enable(AXP202_BATT_VOL_ADC1 | AXP202_BATT_CUR_ADC1 | AXP202_VBUS_VOL_ADC1 | AXP202_VBUS_CUR_ADC1, AXP202_ON);

                                            ^

DudleyWatch:264: error: 'AXP202_VBUS_VOL_ADC1' was not declared in this scope

   power->adc1Enable(AXP202_BATT_VOL_ADC1 | AXP202_BATT_CUR_ADC1 | AXP202_VBUS_VOL_ADC1 | AXP202_VBUS_CUR_ADC1, AXP202_ON);

                                                                   ^

DudleyWatch:264: error: 'AXP202_VBUS_CUR_ADC1' was not declared in this scope

   power->adc1Enable(AXP202_BATT_VOL_ADC1 | AXP202_BATT_CUR_ADC1 | AXP202_VBUS_VOL_ADC1 | AXP202_VBUS_CUR_ADC1, AXP202_ON);

                                                                                          ^

DudleyWatch:264: error: 'AXP202_ON' was not declared in this scope
 power->adc1Enable(AXP202_BATT_VOL_ADC1 | AXP202_BATT_CUR_ADC1 | AXP202_VBUS_VOL_ADC1 | AXP202_VBUS_CUR_ADC1, AXP202_ON);
                                                                                                            ^
DudleyWatch:265: error: 'AXP202_VBUS_REMOVED_IRQ' was not declared in this scope
 power->enableIRQ(AXP202_VBUS_REMOVED_IRQ | AXP202_VBUS_CONNECT_IRQ | AXP202_CHARGING_FINISHED_IRQ, AXP202_ON);

                    ^
DudleyWatch:265: error: 'AXP202_VBUS_CONNECT_IRQ' was not declared in this scope

   power->enableIRQ(AXP202_VBUS_REMOVED_IRQ | AXP202_VBUS_CONNECT_IRQ | AXP202_CHARGING_FINISHED_IRQ, AXP202_ON);

                                              ^

DudleyWatch:265: error: 'AXP202_CHARGING_FINISHED_IRQ' was not declared in this scope
  power->enableIRQ(AXP202_VBUS_REMOVED_IRQ | AXP202_VBUS_CONNECT_IRQ | AXP202_CHARGING_FINISHED_IRQ, AXP202_ON);
                                                                     ^
DudleyWatch:269: error: 'AXP202_EXTEN' was not declared in this scope
 power->setPowerOutPut(AXP202_EXTEN, AXP202_OFF);
            ^
DudleyWatch:269: error: 'AXP202_OFF' was not declared in this scope
  power->setPowerOutPut(AXP202_EXTEN, AXP202_OFF);
                                      ^
DudleyWatch:270: error: 'AXP202_DCDC2' was not declared in this scope

   power->setPowerOutPut(AXP202_DCDC2, AXP202_OFF);
                     ^
DudleyWatch:271: error: 'AXP202_LDO3' was not declared in this scope
power->setPowerOutPut(AXP202_LDO3, AXP202_OFF); // audio device
                   ^
DudleyWatch:272: error: 'AXP202_LDO4' was not declared in this scope
 power->setPowerOutPut(AXP202_LDO4, AXP202_OFF);
  ^
DudleyWatch:283: error: 'BMA423_INT1' was not declared in this scope
pinMode(BMA423_INT1, INPUT);
    ^
DudleyWatch:304: error: 'AXP202_INT' was not declared in this scope
pinMode(AXP202_INT, INPUT);
 ^
C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino: In function 'void loop()':
DudleyWatch:392: error: 'ttgo' was not declared in this scope
 rlst =  ttgo->bma->readInterrupt();
  ^
DudleyWatch:397: error: 'power' was not declared in this scope
power->readIRQ();
^
DudleyWatch:425: error: 'ttgo' was not declared in this scope
rlst =  ttgo->bma->readInterrupt();
 ^
DudleyWatch:428: error: 'ttgo' was not declared in this scope
if (ttgo->bma->isStepCounter()) {
 ^
DudleyWatch:434: error: 'power' was not declared in this scope
power->readIRQ();
^
DudleyWatch:539: error: 'ttgo' was not declared in this scope
 ttgo->tft->fillScreen(TFT_BLACK);
   ^
DudleyWatch:539: error: 'TFT_BLACK' was not declared in this scope
  ttgo->tft->fillScreen(TFT_BLACK);
DudleyWatch:540: error: 'tft' was not declared in this scope
   tft->setTextSize(1);
   ^
Multiple libraries were found for "WiFi.h"
 Used: C:\Users\jJcSystems\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
 Not used: C:\Users\jJcSystems\Desktop\Bakup\12-24-2020\Desktop\arduino-1.8.3\libraries\WiFi
Multiple libraries were found for "SD.h"
 Used: C:\Users\jJcSystems\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SD
 Not used: C:\Users\jJcSystems\Desktop\Bakup\12-24-2020\Desktop\arduino-1.8.3\libraries\SD
exit status 1
'ttgo' was not declared in this scope

I only have one Esp wifi library. The rest I'm unsure of because it is looking for SD not being used.

Joseph

wfdudley commented 3 years ago

I have no idea how you're getting all these errors. Perhaps erase it all and start over?

Therealjosephchrzempiec commented 3 years ago

That is what I'm goibg to try again. I think some is conflitctig with my other libraries.

Joseph

Therealjosephchrzempiec commented 3 years ago

Hello i deleted all libraries and sketches. I get the same Errors when i downloaded all libraries included yours. I try to compile and i get same errors.

In file included from C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master\DudleyWatch\DudleyWatch.ino:33:0: C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master/DudleyWatch.h:44:8: error: 'RTC_Date' does not name a type EXTERN RTC_Date tnow; ^ C:\Users\jJcSystems\Documents\Arduino\libraries\T-watch-2020-master/DudleyWatch.h:129:8: error: 'TFT_eSPI' does not name a type EXTERN TFT_eSPI *tft;

And so forth.

Joseph

Fra4prg commented 3 years ago

Hello Joseph,

I would recommend to uninstall the Arduino IDE including the deletion of the sketch folder (probably C:\Users\jJcSystems\Documents\Arduino but verify the path in your preferences) as well as the Appdata folder, probably C:\Users\jJcSystems\AppData\Local\Arduino15 in your case.

After this install Arduino IDE 1.8.13 again. Then add the following path https://dl.espressif.com/dl/package_esp32_index.json under file -> preferences -> additional URLs, go to Tools->Board->Boards Manager and search for Esp32 -> install Esp32 (Espressif Systems) V1.0.4 Download the TTGO ZIP library from https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library and install it via Sketch->include library ->ZIP library

Follow the instructions of wfdudley to install the required libraries. The NTPCliesnt library can also be found in Github at https://github.com/arduino-libraries/NTPClient

Now everything should work well. This procedure also helped in my case where I got some strange compiler errors in the Windows IDE which did not show under Linux.

Regards Frank

Therealjosephchrzempiec commented 3 years ago

I already uninstalled IDE in windows 10 and reinstalled it. That made no difference this is strange. Firt thing i thought of was he IDE i was running 1.8.13 the latest. I normally install the latest. I don't do a upgrade of IDE.

Joseph

Therealjosephchrzempiec commented 3 years ago

Hello the crazy thing is i can load TTGO watch library and the example codes with no problem. It's somehow i guess the code that comes from yours I'm having problems with. I know it is something I'm doing wrong. I'm working on it.

Joseph