I'm trying to get this library working with the latest Raspbian Stretch, but I'm not getting any values. The example is returning zeros...
I found a thread on the raspberry forum hinting at adding a 'spi max speed' value. The datasheet states a speed of 1MHz, so I have added a line below spi.open saying self.spi.max_speed_hz = 1000000.
Unfortunately this is still not working, so I am hoping anyone could have a quick look into this and see what might be wrong.
I have used this library on Raspbian Jessie and there it was working, so must be something with drivers I guess.
Thanks!
update:
Started with a clean install and things run and report values, but as soon as you stop the python code from running and restart, the y and z values don't change anymore. Also the temperature value is +/- 200 (in both occasions), which is too low.
I'm trying to get this library working with the latest Raspbian Stretch, but I'm not getting any values. The example is returning zeros... I found a thread on the raspberry forum hinting at adding a 'spi max speed' value. The datasheet states a speed of 1MHz, so I have added a line below spi.open saying self.spi.max_speed_hz = 1000000. Unfortunately this is still not working, so I am hoping anyone could have a quick look into this and see what might be wrong. I have used this library on Raspbian Jessie and there it was working, so must be something with drivers I guess. Thanks!
update: Started with a clean install and things run and report values, but as soon as you stop the python code from running and restart, the y and z values don't change anymore. Also the temperature value is +/- 200 (in both occasions), which is too low.