android
Prev Previous Post   Next Post Next
  #4  
Old 01-21-2011, 02:34 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

accelerometer.open() 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:
http://www.anythingbutipod.com/forum...ad.php?t=52712
__________________
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 06:52 AM.