Difference between revisions of "Example sights and sounds"

From wiki.emacinc.com
Jump to: navigation, search
(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 project demonstrates.
+
{{note| This demo only works with EMAC OE 5.2 and earlier.}}
  
The <code>sights-and-sounds</code> project builds one executable: <code>sights-and-sounds</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 Eclipse, please see [[Importing the EMAC OE SDK Projects with Eclipse]].  Then, follow [[Using the EMAC OE SDK Projects with Eclipse]] for information on how to build, upload and execute the example.
 
 
Alternatively, the <code>Makefile</code> can be used with the <code>make</code> command from the commandline to build and upload the example.  For information on this method, please see [[Using EMAC OE SDK Example Projects]].
 
 
====EMAC SDK 5.X====
 
  
 
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.
 
Alternatively, the <code>CMakefile.txt</code> can be used with the <code>cmake</code> command from the commandline to build and upload the example.  For information on this method, please see [[Getting_Started_with_the_EMAC_OE_SDK#Target_Machine_Compiling | Getting Started with the EMAC OE SDK]].
 
  
 
==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 no parameters.
+
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.  
  
<code>./sights-and-sounds</code>
+
The brightness can be changed from the slider on the left hand side.
  
The program .
+
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@ipac9x25:~# ./sights-and-sounds
+
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 13: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.

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.