It works for me, I'm now trying to make work with c++ :(
(PYTHON)
tilt = bus.read_byte_data(DEVICE_ADDRESS, DEVICE_REGISTER), that's all. All 
you need to do is find out the correct addresses at datasheet :) mine is: 
DEVICE_ADDRESS = 0x53 and DEVICE_REGISTER (DATA) = 0x32 to 0x37 (LSB,MSB), 
but you can use bus.read_word_data(DEVICE_ADDRESS, DEVICE_REGISTER) to read 
LSB and MSB together.

Good lucky

On Tuesday, November 19, 2013 6:41:30 PM UTC-2, Zain Dar wrote:
>
> Oh yeah I've seen this one but then I turned away from it since it worked 
> with the raspberry pi. I'll give this one a try too, maybe it should work 
> with it. 
> I also have another question: I need to record or save the voltage 
> readings into a file for the sd card of the beaglebone. What is the lines 
> of code that I need to add and which part of the code I should add it in? 
> Thanks for the help!
>
>
> On Tue, Nov 19, 2013 at 8:48 AM, Seth <[email protected] 
> <javascript:>>wrote:
>
>> Have you seen this library <https://github.com/pimoroni/adxl345-python>?
>>  
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "BeagleBoard" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/beagleboard/Rkhvpaf8HHc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to