API Reference - Radio.GetPreset()
Radio.GetPreset()
Radio.GetPreset()
Description | Indicates the saved preset corresponding to the current frequency. |
Response | Number If the current frequency matches a saved preset returns the number < 6 corresponding to it, else returns 0. |
Parameter | Void |
Example
1
2
3
4
5
if (Radio.GetPreset() === 0) {
// Current frequency does not correspond to a preset frequency
} else {
// The frequency has been defined as a preset by the user
}
Appeared in Wave 4.1 - version 30.00.09.00