Vibrate, On_vibrator, Off_vibrator – Argox PA-20 Programming Guide User Manual

Page 104: Set_vibrator_timer, Get_vibrator_timer

Advertising
background image

PT-20 Programming Guide

102

Vibrate

on_vibrator

Purpose: Use on_vibrator to set vibrator on.

Syntax: void on_vibrator(void);

Example call: on_vibrator( );

Includes:

#include “SDK.h ”

Description: Use on_vibrator function can enable vibrator. On timer is set by

set_vibrator_timer function.

Returns: None.

off_vibrator

Purpose: Use off_vibrator to set vibrator off.

Syntax: void off_vibrator(void);

Example call: off_vibrator( );

Includes:

#include “SDK.h ”

Description: Use off_vibrator function can daisable vibrator.

Returns: None.

set_vibrator_timer

Purpose: Use set_vibrator_timer to set vibrator on timer.

Syntax: void set_vibrator_timer(unsigned char usTimer);

Example call: set_vibrator_timer(10);//Set vibrator on timer for 1 sec.

Includes:

#include “SDK.h ”

Description: Use set_vibrator_timer function can set vibrator on timer. For example, set

10 for on 1 sec.

Returns: None.

get_vibrator_timer

Purpose: Use get_vibrator_timer to get vibrator on. timer

Syntax: unsigned char get_vibrator_timer(void);

Example call: i = get_vibrator_timer( );

Includes:

#include “SDK.h ”

Description: Use get_vibrator_timer function can get vibrator on timer.

Returns: Vibrator on timer.

Advertising