I want to find...

Search

Shares

Table of Content

86HMI::playSound()

[General Functions]

Description

Play Sound. Can use soundNo or description be the index to find corresponding sound.

Syntax

void playSound(AudioSample* sample) { sample->play(); }
void playSound(int soundNo);
void playSound(char* description);

Parameters

  • [in] sample
    Sample sound.
  • [in] soundNo
    Sound file number.
  • [in] description
    Sound description.

Return

None.

Example

#include "myhmi.h"

void setup() {
  Hmi.begin();
  // put your setup code here, to run once:
  Hmi.playSound(1);
}

void loop() {
}

Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.

Scroll to Top