Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Generate haptic feedback
@status current Introduced in 2.2.0
duration
(number) length of the haptic feedback in milliseconds
pause
(number) length of the silence after haptic feedback in milliseconds
flags
(number):
0 or not present
play with normal priority
PLAY_NOW
play immediately
none
Play a time value (text to speech)
Supported Targets: BW, COLOR
Status: current Introduced in 2.1.0, changed in 2.10
duration
(number) number of seconds to play. Only integral part is used.
hourFormat
(number):
0 or not present
play format: minutes and seconds.
!= 0
play format: hours, minutes and seconds.
none
Play a tone
Supported targets: BW, COLOR
Status: current Introduced in 2.1.0, changed in 2.10
frequency
(number) tone frequency in Hz (from 150 to 15000)
duration
(number) length of the tone in milliseconds
pause
(number) length of the silence after the tone in milliseconds
flags
(number):
0 or not present
play with normal priority.
PLAY_BACKGROUND
play in background (built in vario function uses this context)
PLAY_NOW
play immediately
freqIncr
(number) positive number increases the tone pitch (frequency with time), negative number decreases it. The frequency changes every 10 milliseconds, the change is freqIncr * 10Hz
. The valid range is from -127 to 127.
volume
(number): (1..5) override radio settings Beep volume for the duration of file. Omitting the parameter uses radio settings Beep volume
none
Play a file from the SD card
Supported targets: BW, COLOR
Status: current Introduced in 2.0.0, changed in 2.1.0, changed in 2.10\
filename
(string) full path to wav file (i.e. “/SOUNDS/en/system/tada.wav”)
Introduced in 2.1.0: If you use a relative path, the current language is appended
to the path (example: for English language: /SOUNDS/en
is appended)
volume
(number): (1..5) override radio settings Wav volume for the duration of file. Omitting the parameter uses radio settings Wav volume
none
Flushes audio queue
@status experimental, Introduced in 2.8.0
Parameters
none
Return value
none
Play a numerical value (text to speech)
Supported Targets: BW, COLOR
Status: current Introduced in 2.0.0, changed in 2.10
value
(number) number to play. Value is interpreted as integer.
unit
(number) unit identifier [Full list]((../appendix/units.html))
attributes
(unsigned number) possible values:
0 or not present
plays integral part of the number (for a number 123 it plays 123)
PREC1
plays a number with one decimal place (for a number 123 it plays 12.3)
PREC2
plays a number with two decimal places (for a number 123 it plays 1.23)
volume
(number): (1..5) override radio settings Wav volume for the duration of file. Omitting the parameter uses radio settings Wav volume
none