In article ,
Björn Lundin wrote:
>pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x75
>0x68
>
>but I get 0x00 for the x/y/z and ax/ay/az values whatever I do
>pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x44
>0x00
>pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x43
>0x00
>pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x3b
>0x00
>pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x3c
>0x00
I've not used this device, but in emails with others what I gather is that
you need to make sure it's not in self-test mode and that the registers
(scaling, etc.) are set correcty, and that it's not in sleep mode, then
trigger it to take a sample. Until then, the default values are all zeros.
Or put it into continuous sample mode.
So go and read the fine manual before writing it off!
-Gordon
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|