Download the library sms.zip. Source code for unimotion.c and Unimotion.java is contained in the src directory.

Available functions:

// Return x, y, and z values as arraypublicstaticint[]getSMSArray();// Return just the XpublicstaticintgetSMSX();// Return just the YpublicstaticintgetSMSY();// Return just the ZpublicstaticintgetSMSZ();