0

Gesture_sensor APDS9960
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Gesture_sensor APDS9960

by Christianfalkenbergandersen on Sat Nov 18, 2017 1:28 am

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 | TOGGLE FULL SIZE
#include <Wire.h>


I stuck it in above the line :
Code: Select all | TOGGLE FULL SIZE
#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.

Christianfalkenbergandersen
 
Posts: 4
Joined: Sat Nov 29, 2014 2:38 am

Re: Gesture_sensor APDS9960

by tkinsman on Wed Dec 13, 2017 6:53 pm

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.

tkinsman
 
Posts: 67
Joined: Sun Sep 25, 2016 2:04 pm

Re: Gesture_sensor APDS9960

by Christianfalkenbergandersen on Wed Dec 13, 2017 7:26 pm

Well the way I described it did fix the problem.

I just thought other people would be interested as well.

Christianfalkenbergandersen
 
Posts: 4
Joined: Sat Nov 29, 2014 2:38 am

Re: Gesture_sensor APDS9960

by tkinsman on Wed Dec 13, 2017 9:54 pm

Oh. I see. Thanks for the help understanding.

tkinsman
 
Posts: 67
Joined: Sun Sep 25, 2016 2:04 pm

Please be positive and constructive with your questions and comments.