PI1X Basic Programming Manual Ver. 1.10
87/156
3.16
Vibrator commands
Purpose
:
To set or get the vibrator timer.
Syntax
:
A% = VIBRATOR_TIMER
VIBRATOR_TIMER = X%
Example
:
VIBRATOR_TIMER=5
…
PRINT “Vibrator timer:”,VIBRATOR_TIMER
Description
:
A%
is an integer variable to be assigned as the vibrator timer.
X%
is an integer variable indicating a period of time in units
of 100ms.
Purpose
:
To set the vibrator on/off.
Syntax
:
VIBRATOR(N%)
Example
:
VIBRATOR(1) ‘Vibrator on
'Wait 0.5 sec
WAIT(100)
VIBRATOR(0) ‘Vibrator off
Description
:
N% is an integer variable indicating vibrator on or off.
N%
Meaning
0
Vibrator off
1
Vibrator on