// Project: SensorApp // Created: 2015-12-25 // set window properties SetWindowTitle( "SensorApp" ) SetWindowSize( 1024, 768, 0 ) // set display properties SetVirtualResolution( 1024, 768 ) SetOrientationAllowed( 1, 1, 1, 1 ) if GetAccelerometerExists()=1 Accelerometer$="Accelerometer exists" ACC=1 else Accelerometer$="No Accelerometer avaliable" ACC=0 endif do print("Date : " + GetCurrentDate()) print("Time : " + GetCurrentTime()) Print("FPS : " + str(ScreenFPS()) ) print(Accelerometer$) if (ACC=1) Print("AccelX : " + str( GetRawAccelX() )) Print("AccelY : " + str( GetRawAccelY() )) Print("AccelZ : " + str( GetRawAccelZ() )) EndIf Sync() loop