[General Functions]
Description
Set Sound volume.
Syntax
void setSoundVolume(int volume) {
Audio.prepare(NULL, 1024, volume);
};
Parameters
[in] volume
Sound volume.
Return
None.
Example
#include "myhmi.h"
void setup() {
Hmi.begin();
// put your setup code here, to run once:
Hmi.setSoundVolume(1024); // min. 0; max. 1024
}
void loop() {
// ...
}Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.