Here is what I get when i try to use your sample code for RPi.
Traceback (most recent call last):
File "test.py", line 39, in <module>
motion = apds.readGesture()
File "/home/pi/.local/lib/python2.7/site-packages/apds9960/device.py", line 192, in readGesture
self.gesture_data_.u_data[self.gesture_data_.index] = fifo_data[i + 0]
IndexError: list assignment index out of range
Here is what I get when I try to print the list and the index (last 2 loop):
Here is what I get when i try to use your sample code for RPi.
Here is what I get when I try to print the list and the index (last 2 loop):
looks like
self.gesture_data_.u_data
has 32 item andself.gesture_data_.index
doing +1 in each loop.