-
Notifications
You must be signed in to change notification settings - Fork 20
lis3dh_ad example broken #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yeah we are much pickier now about the unpack format matching the size of the buffer. wanna try fixing? you just need to slice the array to the right size |
sure -- I'll give it a try |
OK -- I have it working now -- just cleaning up the example - will have PR later tonight or more likely tomorrow. All the boards with on-board LIS3DHs have the ADC inputs tied to Vdd the example is not very interesting ;-) -- I'll add some notes to the example that it is really only useful on the breakout. |
yeah - best not to have them floating if unused, the ADCs are kinda not great :) |
There are a few problem with the lis3dh_adc example.
I get the same results on a CPX and CPB
The I2C initialization needs to be updated:
I changed it to use the same init as in the other examples:
and it seems happy, but then I get
the error appears to be here
https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/master/adafruit_lis3dh.py#L206
The text was updated successfully, but these errors were encountered: