trying to follow this tutorial: https://learn.adafruit.com/cheekmate-wi ... duino-code
I am using a win10 machine, arduino IDE 1.8.10, I installed/updated the following libraries: Adafruit DRV2605 v1.2.2, adafruit IO library v4.2.3. Under tools, board I selected 'adafruit qt py esp32-s2' , using the sample code Cheekmate.ino and the config.h file but when it compiles I get the following errors:
thanks
C:\Data\ArduinoSourceCode-win10b\morseCode\morseCode.ino: In function 'void setup()':
morseCode:47:19: error: no matching function for call to 'Adafruit_DRV2605::begin(TwoWire*)'
drv.begin(&Wire1);
^
In file included from C:\Data\ArduinoSourceCode-win10b\morseCode\morseCode.ino:26:
C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605/Adafruit_DRV2605.h:76:11: note: candidate: 'boolean Adafruit_DRV2605::begin()'
boolean begin(void);
^~~~~
C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605/Adafruit_DRV2605.h:76:11: note: candidate expects 0 arguments, 1 provided
Multiple libraries were found for "Wire.h"
Used: C:\Users\JimK\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\Wire
Multiple libraries were found for "AdafruitIO_WiFi.h"
Used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_IO_Arduino
Multiple libraries were found for "Adafruit_MQTT.h"
Used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_MQTT_Library
Multiple libraries were found for "ArduinoHttpClient.h"
Used: C:\Users\JimK\Documents\Arduino\libraries\ArduinoHttpClient
Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\JimK\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\WiFiClientSecure
Multiple libraries were found for "WiFi.h"
Used: C:\Users\JimK\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\WiFi
Not used: C:\Program
Multiple libraries were found for "Adafruit_NeoPixel.h"
Used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_NeoPixel
Multiple libraries were found for "Adafruit_DRV2605.h"
Used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605
Not used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605_Library
exit status 1
no matching function for call to 'Adafruit_DRV2605::begin(TwoWire*)'
cheekmate arduino code will not compile
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: cheekmate arduino code will not compile
This bit of the output is key:
My thought is that it's using an old version of the library, i.e. C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605 Try deleting that and compiling again.
Dave
Code: Select all
Multiple libraries were found for "Adafruit_DRV2605.h"
Used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605
Not used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605_Library
Dave
- jimk123
- Posts: 708
- Joined: Sun Dec 26, 2010 7:04 pm
Re: cheekmate arduino code will not compile
Hi Dave
I checked the date on the folder and it is todays date when i installed it from the library manager. I was wondering if the version has changed since they wrote that code ? The one i installed say 1.2.2
Thanks
I checked the date on the folder and it is todays date when i installed it from the library manager. I was wondering if the version has changed since they wrote that code ? The one i installed say 1.2.2
Thanks
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: cheekmate arduino code will not compile
1.2.2 will work. You could try deleting both copies and reinstalling the library.
Dave
Dave
- jimk123
- Posts: 708
- Joined: Sun Dec 26, 2010 7:04 pm
Re: cheekmate arduino code will not compile
Hi Dave
Sorry for the delay , I am traveling and don’t have access to my laptop. Are you saying there are two folders under libraries with the same cpp a h file names ?
Thanks
Sorry for the delay , I am traveling and don’t have access to my laptop. Are you saying there are two folders under libraries with the same cpp a h file names ?
Thanks
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: cheekmate arduino code will not compile
See the clip Dave posted above. The compiler output says "Multiple libraries were found for "Adafruit_DRV2605.h"" and shows the paths to both:
If you delete both of those and re-install, you should end up with just the latest version.Multiple libraries were found for "Adafruit_DRV2605.h"
Used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605
Not used: C:\Users\JimK\Documents\Arduino\libraries\Adafruit_DRV2605_Library
- jimk123
- Posts: 708
- Joined: Sun Dec 26, 2010 7:04 pm
- jimk123
- Posts: 708
- Joined: Sun Dec 26, 2010 7:04 pm
Re: cheekmate arduino code will not compile
that fixed the compiler errors, thanks
curiosity, why does the library download under different names ? Is that the owner (in this case adafruit) change the library name from time to time ?
curiosity, why does the library download under different names ? Is that the owner (in this case adafruit) change the library name from time to time ?
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: cheekmate arduino code will not compile
That's possible, but also it can depend on how it was installed.
Multiple copies of libraries is something to keep an eye out for. When you see it complain about multiple libraries found, you need to get rid of one (or all & reinstall... that's probably the cleanest).
Dave
Multiple copies of libraries is something to keep an eye out for. When you see it complain about multiple libraries found, you need to get rid of one (or all & reinstall... that's probably the cleanest).
Dave
- jimk123
- Posts: 708
- Joined: Sun Dec 26, 2010 7:04 pm
Re: cheekmate arduino code will not compile
Thanks Dave
I learn something new every time I try a new sensor/project here, greatly appreciated.
Jim
I learn something new every time I try a new sensor/project here, greatly appreciated.
Jim
Please be positive and constructive with your questions and comments.