To create a simple audio test HMI project in minutes
- Convert the audio file to wav format in VideoBox
- Add audio wav file in the resource panel
- Add two buttons for PLAY and PAUSE and configure the background of these two components
- Add audio component, initial the audio en parameter as “0” and set audio ID as “0”
- Coding “wav0.en=1” for PLAY button Touch Release Event
- Coding “wav0.en=0” for STOP button Touch Release Event
- Compile and upload the project
Applicable Model:
- NX4827P043-011R
- NX4827P043-011C
- NX8048P050-011R
- NX8048P050-011C
- NX8048P070-011R
- NX8048P070-011C
- NX1060P101-011R-I
- NX1060P101-011C-I
*Note: To Be sure that the Nextion HMI display working properly, please increase 0.5A for the working current of the display power supply. For example, The official power supply recommendation of NX4827P043-011R is DC 5V/1.0A, if you would like to use the Nextion BOX speaker, the input current should be increased from 1.0A to 1.5A to ensure working stability.
There are no reviews yet.