Add files via upload
This commit is contained in:
parent
64c6352265
commit
35131ba393
90 changed files with 1738 additions and 0 deletions
11
Examples/Sensors/accelerometer.bas
Normal file
11
Examples/Sensors/accelerometer.bas
Normal file
|
@ -0,0 +1,11 @@
|
|||
SUB MAIN
|
||||
IF (IsAccelerometerAvailable()) THEN
|
||||
WHILE (TRUE)
|
||||
PRINT "--"
|
||||
PRINT "X=" + STRING(getAccelerometerX()) + ", Y=" + STRING(getAccelerometerY()) + ", Z=" + STRING(getAccelerometerZ())
|
||||
SLEEP 1000
|
||||
END WHILE
|
||||
ELSE
|
||||
PRINT "Accelerometer Sensor is not available on this device"
|
||||
END IF
|
||||
END SUB
|
Loading…
Add table
Add a link
Reference in a new issue