[General Functions]
描述
Play Sound. Can use soundNo or description be the index to find corresponding sound.
語法
void playSound(AudioSample* sample) { sample->play(); }
void playSound(int soundNo);
void playSound(char* description);
參數
[in] sample
Sample sound.[in] soundNo
Sound file number.[in] description
Sound description.
Return
無
範例
#include "myhmi.h" void setup() { Hmi.begin(); // put your setup code here, to run once: Hmi.playSound(1); } void loop() { }
Please see the 86HMI 編輯器使用手冊 for more instructions on 86HMI widgets and API usage.