Example sights and sounds

From wiki.emacinc.com
Jump to: navigation, search

This is a guide to the sights-and-sounds C example project included in the EMAC OE SDK.

This demo only works with EMAC OE 5.2 and earlier.

This project demonstrates the use of the LCD Touchscreen Display as well as the audio capabilities of the device.

The sights-and-sounds project builds one executable: SAS.

Opening, Building and Uploading the Project Files

For information on opening the project from within QtCreator, please see QtCreator: Adding Source Files. Then, follow Getting Started With Qt Creator for information on how to build, upload and execute the example.

Usage and Behavior

Hardware Requirements

The sights-and-sounds C example project will run on a device with a 7" Touchscreen LCD and has an audio output .

Using sights-and-sounds

The sights-and-sounds program is executed from the console. It takes one parameter telling the program to use the onboard default display.

./SAS -qws

The program will then display a file dialog box on the LCD where you can chose the audio file for the demo. If none, you can press cancel to exit the dialog box. The demo program consist of 2 parts: the LCD brightness and the audio playback.

The brightness can be changed from the slider on the left hand side.

The audio actions are: "Play" - to play or pause, "Loop" - to loop the audio at the end of the playback, "Mute" - to mute the playback, and adjust the "Volume" slider. The "Select Source" brings you back to the file dialog box to change the audio file being used.

Usage Example

root@3354:~# ./SAS -qws


The sights-and-sounds C example project demonstrates the use of the LCD Touchscreen and the audio output.