We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › Apple Sudden Motion Sensor Library
Page Index Toggle Pages: 1
Apple Sudden Motion Sensor Library (Read 2761 times)
Apple Sudden Motion Sensor Library
Oct 28th, 2006, 9:57pm
 
After a few days of fighting with Java Native Interfaces, I'm pleased to announce a new Processing library that makes use of the Apple Sudden Motion Sensor.

http://www.shiffman.net/2006/10/28/processingsms/

Enjoy!
Re: Apple Sudden Motion Sensor Library
Reply #1 - Oct 28th, 2006, 11:40pm
 
That's incredible, I can't wait to play with it on my powerbook. Thanks a lot!
Re: Apple Sudden Motion Sensor Library
Reply #2 - Oct 29th, 2006, 8:33am
 
Uh, the link seems to be not working which made me instantly very sad!!!
Re: Apple Sudden Motion Sensor Library
Reply #3 - Oct 29th, 2006, 8:35am
 
People keep telling me this, but the link works just fine for me?  What error are you getting and can you send me the URL you are pointing to?  I am so confused. . .this showed up on Digg and I keep getting e-mails saying the link is no good!

Oh, the internets!
Re: Apple Sudden Motion Sensor Library
Reply #4 - Oct 29th, 2006, 8:38am
 
Unsupported major.minor version 49.0

Your posted link points to:
http://www.shiffman.net/2006/10/28/processingsms/
which gives a 404 error.

However, if you go through shiffman.net, it leads to this link:
http://www.shiffman.net/p5/sms/

Nonetheless, I get a major.minor version error when I try to run your example code on a MacBook Pro running 10.4.8.  As far as I know, I am still on a 1.4* version of Java.  Ideas?

Re: Apple Sudden Motion Sensor Library
Reply #5 - Oct 29th, 2006, 8:44am
 
How very odd, I can't seem to reproduce that 404 error!  I wonder if daylight savings time is to blame?!

With respect ot the major.minor error, I am running 1.5.0_06.  I wonder if I did something 1.5-specific in compiling the JNIlib?  It was all mashed together using Xcode so it's all a bit mysterious to me?!  I will maybe try to debug on a macbook on Monday!

Dan
Re: Apple Sudden Motion Sensor Library
Reply #6 - Oct 29th, 2006, 8:58am
 
ok, the link should be fixed now, my bad!
Re: Apple Sudden Motion Sensor Library
Reply #7 - Oct 29th, 2006, 1:42pm
 
very cool.. i keep looking at the sample code from the osxbook site and wanting to do this, but i'm glad you've beat me to it instead Smiley

there are notes in libraries/howto.txt about the major/minor thing.
Page Index Toggle Pages: 1