cheekmate arduino code will not compile

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

cheekmate arduino code will not compile

Post by jimk123 »

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*)'

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: cheekmate arduino code will not compile

Post by dastels »

This bit of the output is key:

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
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

User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

Re: cheekmate arduino code will not compile

Post by jimk123 »

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

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: cheekmate arduino code will not compile

Post by dastels »

1.2.2 will work. You could try deleting both copies and reinstalling the library.

Dave

User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

Re: cheekmate arduino code will not compile

Post by jimk123 »

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

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: cheekmate arduino code will not compile

Post by adafruit_support_bill »

See the clip Dave posted above. The compiler output says "Multiple libraries were found for "Adafruit_DRV2605.h"" and shows the paths to both:
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
If you delete both of those and re-install, you should end up with just the latest version.

User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

Re: cheekmate arduino code will not compile

Post by jimk123 »

Thanks !

User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

Re: cheekmate arduino code will not compile

Post by jimk123 »

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 ?

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: cheekmate arduino code will not compile

Post by dastels »

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

User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

Re: cheekmate arduino code will not compile

Post by jimk123 »

Thanks Dave
I learn something new every time I try a new sensor/project here, greatly appreciated.
Jim

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”