
PT-Basic Programming Manual Ver. 1.00 87/143
3.16 Vibrator commands
To set or get the vibrator timer.
A% = VIBRATOR_TIMER
VIBRATOR_TIMER = X%
VIBRATOR_TIMER=5
…
PRINT “Vibrator timer:”,VIBRATOR_TIMER
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.
To set the vibrator on/off.
VIBRATOR(1) „Vibrator on
'Wait 0.5 sec
WAIT(100)
VIBRATOR(0) „Vibrator off
N% is an integer variable indicating vibrator on or off.
Commentaires sur ces manuels