Prev Previous Post   Next Post Next
Old 01-21-2011, 03:34 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default should return 0 so I see no problem with the if statement.

I do believe that (all) should be between quotes: accelerometer.set_datatype("all") and accelerometer.getdata("all").

As for setting the datatypes, not sure if those are needed but I use it anyway to be sure.

Tetrajak left us with an app to do a similar task, check it out to get some ideas on how to work with the accelerometer:
this is a link to my personal homepage which I haven't
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 08:03 AM.