Sub InitPedometer
Dim pedometer As PhoneSensors
pedometer.Initialize(19)
If pedometer.StartListening ("Pedometer") = False Then
Msgbox("Not supported","")
Return
End If
End Sub
Sub Pedometer_SensorChanged (Values() As Float)
Log("Step counter: " & Values(0))
End Sub