liske / python-apds9960

Python APDS-9960 Library
GNU General Public License v3.0
81 stars 28 forks source link

Gestures are not working on ESP32 #7

Open plugowski opened 5 years ago

plugowski commented 5 years ago

When I try to run example gesture code I get:

Gesture Test
============
Traceback (most recent call last):
  File "<stdin>", line 31, in <module>
  File "apds9960/device.py", line 185, in readGesture
  File "apds9960/device.py", line 1103, in _read_i2c_block_data
OSError: I2C bus error (6)

Any ideas what is wrong?

coffice12 commented 5 years ago

exec(open('test_ambient.py').read(),globals()) Traceback (most recent call last): File "", line 1, in File "", line 10, in File "apds9960/device.py", line 41, in init File "apds9960/exceptions.py", line 3, in init AttributeError: type object 'Exception' has no attribute 'init'

me too,my function error

liske commented 5 years ago

exec(open('test_ambient.py').read(),globals()) Traceback (most recent call last): File "", line 1, in File "", line 10, in File "apds9960/device.py", line 41, in init File "apds9960/exceptions.py", line 3, in init AttributeError: type object 'Exception' has no attribute 'init'

me too,my function error

@coffice12 this is not related since it is triggered by an unknown device ID (#10)