# Copyright (c) 2006 Jurgen Scheible # N95 Accelerometer data reading of x,y,z value # before this runs on your N95 classic (I guess for N95 8GB it is different), you need to: # 1. get N95_RD_Accelerometer.zip at http://research.nokia.com/files/N95_RD_Accelerometer.zip extract it and install the # file N95AccelerometerPlugin.sis to your phone, only after that # 2. get aXYZ_3rd_N95_1_0_2_selfsigned.sisx at http://sourceforge.net/project/showfiles.php?group_id=132176&package_id=252008&release_id=553808 # and install it after that the following script should work import appuifw, e32, axyz def read_xyz(x, y, z): print x,y,z def quit(): axyz.disconnect() app_lock.signal() axyz.connect(read_xyz) appuifw.app.title = u"N95 accelerometer" appuifw.app.exit_key_handler = quit app_lock = e32.Ao_lock() app_lock.wait()