Data Sheet

www.veear.eu
54 EasyVR 3 User Manual (1.0.8)
int8_t getPinInput (int8_t
pin
, int8_t
config
)
Configures an I/O pin as an input with optional pull-up and return its value
Parameters:
pin
(1-3) is one of values in PinNumber
pin
(2-4) is one of the input values in PinConfig
Return values:
integer
is the logical value of the pin
void detectToken (int8_t
bits
, int8_t
rejection
, uint16_t
timeout
)
Starts listening for a SonicNet token. Manually check for completion with hasFinished().
Parameters:
bits
(4 or 8) specifies the length of received tokens
rejection
(0-2) specifies the noise rejection level, it can be one of the values in
RejectionLevel
timeout
(1-28090) is the maximum time in milliseconds to keep listening for a
valid token or (0) to listen without time limits.
Note:
The module is busy until token detection completes and it cannot accept other commands. You can
interrupt listening with stop().
void sendTokenAsync (int8_t
bits
, uint8_t
token
)
Starts immediate playback of a SonicNet token. Manually check for completion with hasFinished().
Parameters:
bits
(4 or 8) specifies the length of trasmitted token
token
is the index of the SonicNet token to play (0-255 for 8-bit tokens or 0-15
for 4-bit tokens)
Note:
The module is busy until playback completes and it cannot accept other commands. You can
interrupt playback with stop().
bool sendToken (int8_t
bits
, uint8_t
token
)
Plays a SonicNet token and waits for completion.
Parameters:
bits
(4 or 8) specifies the length of trasmitted token
token
is the index of the SonicNet token to play (0-255 for 8-bit tokens or 0-15
for 4-bit tokens)
Return values:
true
if the operation is successful
bool embedToken (int8_t
bits
, uint8_t
token
, uint16_t
delay
)
Schedules playback of a SonicNet token after the next sound starts playing.
Parameters:
bits
(4 or 8) specifies the length of trasmitted token