Hello you all,
I want to use the gesture sensor of the APDS 9960 to control a LED (switching it on, off, basic stuff). Since I want to put it in a small item I bought the Adafruit Trinket wich is supposed to have the required SCL (#2) and SDA (#0) pin in order to run the 9960 sensor (as seen in this pin visualization).
Since the sensor is also ok with 5V - because it has a voltage decreasing thing - this should not be a problem.
my connection setup looks like this:
9960: | VIN | 3Vo | Gnd | SCL | SDA | Int |
---|---|---|---|---|---|---|
Trinket: | 5V | (no connection) | Gnd | #2 | #0 | (no connection) |
With my Arduino Uno everything works just fine. I just followed these instructions.
Since the serial.println is not supported by the Trinket, I do not know why the sensor is not working with it.
With the Arduino Uno the pin for SCL is A5 and the one for SDA is A4. Do I maybe have to change the code somewhere that the pins 0 and 2 have to be used with the Trinket instead?
Thank you so much and best wishes,
kakerlakenpopo