Difference between revisions of "Example sights and sounds"
(Page creation) |
|||
Line 7: | Line 7: | ||
This is a guide to the <code>sights-and-sounds</code> C example project included in the EMAC OE SDK. | This is a guide to the <code>sights-and-sounds</code> C example project included in the EMAC OE SDK. | ||
− | This | + | {{note| This demo only works with EMAC OE 5.2 and earlier.}} |
− | The <code>sights-and-sounds</code> project builds one executable: <code> | + | This project demonstrates the use of the LCD Touchscreen Display as well as the audio capabilities of the device. |
+ | |||
+ | The <code>sights-and-sounds</code> project builds one executable: <code>SAS</code>. | ||
== Opening, Building and Uploading the Project Files == | == Opening, Building and Uploading the Project Files == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
For information on opening the project from within QtCreator, please see [[Getting_Started_With_Qt_Creator#Adding_Source_Files | QtCreator: Adding Source Files]]. Then, follow [[Getting Started With Qt Creator]] for information on how to build, upload and execute the example. | For information on opening the project from within QtCreator, please see [[Getting_Started_With_Qt_Creator#Adding_Source_Files | 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== | ==Usage and Behavior== | ||
Line 27: | Line 21: | ||
===Hardware Requirements=== | ===Hardware Requirements=== | ||
− | The <code>sights-and-sounds</code> C example project will run on . | + | The <code>sights-and-sounds</code> C example project will run on a device with a 7" Touchscreen LCD and has an audio output . |
===Using <code>sights-and-sounds</code>=== | ===Using <code>sights-and-sounds</code>=== | ||
− | The <code>sights-and-sounds</code> program is executed from the console. It takes | + | The <code>sights-and-sounds</code> program is executed from the console. It takes one parameter telling the program to use the onboard default display. |
+ | |||
+ | <code>./SAS -qws</code> | ||
+ | |||
+ | 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 | + | 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=== | ===Usage Example=== | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
− | root@ | + | root@3354:~# ./SAS -qws |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 46: | Line 44: | ||
==Summary== | ==Summary== | ||
− | The <code>sights-and-sounds</code> C example project demonstrates . | + | The <code>sights-and-sounds</code> C example project demonstrates the use of the LCD Touchscreen and the audio output. |
Latest revision as of 12:42, 19 October 2020
This is a guide to the sights-and-sounds
C example project included in the EMAC OE SDK.
NOTE |
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
.
Contents
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
Summary
The sights-and-sounds
C example project demonstrates the use of the LCD Touchscreen and the audio output.