Gesture_sensor APDS9960

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Christianfalkenbergandersen
 
Posts: 6
Joined: Sat Nov 29, 2014 2:38 am

Gesture_sensor APDS9960

Post by Christianfalkenbergandersen »

For the gesture sensor library example sketch:
The extracted version would not verify without errors without adding the following line of code :

Code: Select all

#include <Wire.h>
I stuck it in above the line :

Code: Select all

#include “Adafruit_Adafruit_APDS9960.h”
- without it the compiler gave an error that the Wire.h was called but missing.
————
With this addition everything works fine.
( maybe it is because I am using the older arduino IDE 1.6.4? ).
Anyway I thought others may find it useful to know this as well

-I was going to include a screenshot but did not seem to be able to do this from my iPhone but I think you should be able to figure it out from my above description.

User avatar
tkinsman
 
Posts: 170
Joined: Sun Sep 25, 2016 2:04 pm

Re: Gesture_sensor APDS9960

Post by tkinsman »

I've seen this error message about "Wire.h" someplace else in the forums, but cannot remember where.
I seem to remember that there was something seemingly unrelated that fixed the problem.

I'm sorry I can't be more help, but my message would be to look for the error message and see who else has found a solution.

Don't give up.

User avatar
Christianfalkenbergandersen
 
Posts: 6
Joined: Sat Nov 29, 2014 2:38 am

Re: Gesture_sensor APDS9960

Post by Christianfalkenbergandersen »

Well the way I described it did fix the problem.

I just thought other people would be interested as well.

User avatar
tkinsman
 
Posts: 170
Joined: Sun Sep 25, 2016 2:04 pm

Re: Gesture_sensor APDS9960

Post by tkinsman »

Oh. I see. Thanks for the help understanding.

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

Return to “Other Arduino products from Adafruit”