[General Functions]
描述
Set Sound volume.
語法
void setSoundVolume(int volume) {
Audio.prepare(NULL, 1024, volume);
};
參數
[in] volume
Sound volume.
Return
無
範例
#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 編輯器使用手冊 for more instructions on 86HMI widgets and API usage.