Difference between revisions of "Example brightness"

From wiki.emacinc.com
Jump to: navigation, search
Line 1: Line 1:
{{todo|InProgress(11.13.13-13:48->JG+)|Jgreene|project=oe 4,oe 5,jg,md,InProgress}}
+
{{todo|InProgress(12.27.13-11:03->JG+)|Jgreene|project=oe 4,oe 5,jg,md,InProgress}}
<big>This procedure provides an overview of how to compile and run the ''brightness'' C example project. It assumes familiarity with the C programming language and is intended to be used by experienced programmers who are looking to learn the EMAC SDK.</big>
+
This is a guide to the <code>brightness</code> C example project included in the EMAC OE SDK.
  
====1. Open the ''C/C++'' editing perspective====
+
This is a simple backlight-brightness control. It's written for the EMAC PPC-E7 and SoM-9307 but it will probably run on anything with a backlight. It implements a slider application in GTK+ that directly controls the backlight through its sysfs interface. It has been tested under Xfbdev/Matchbox.
  
====2. Open the ''brightness'' project====
+
The <code>brightness</code> project builds one executable: <code>brightness</code>.
  
====3. Build, upload and run====
+
== Opening, Building and Uploading the Project Files ==
  
==What it does==
+
<big>1. Open the C/C++ editing perspective.</big>
  
 +
stub
  
 +
<big>2. Open the project files.</big>
  
''From the comments in <code>brightness.c</code>''
+
stub
  
    Simple Brightness/Backlight control for the EMAC PPC-E7
+
<big>3. Build the project.</big>
    and SoM-9307. Implements a slider application in GTK+
+
 
    that directly controls the backlight through its sysfs
+
stub
    interface. Tested under Xfbdev/Matchbox.
+
 
 +
<big>4. Upload the executables to the target system.</big>
 +
 
 +
stub
 +
 
 +
==Usage and Behavior==
 +
 
 +
The <code>brightness</code> C example project creates a GTK+ UI for controlling the backlight-brightness. It gives us a slider, a spinner and a textfield.
 +
 
 +
===Hardware Requirements===
 +
 
 +
The <code>brightness</code> C example project is written for the EMAC PPC-E7 and SoM-9307 but it will probably run on anything with a backlight.
 +
 
 +
===Using <code>brightness</code>===
 +
 
 +
First set the DISPLAY variable.
 +
 
 +
export DISPLAY=:0.0
 +
 
 +
Then run the <code>brightness</code> C executable.
 +
 
 +
./brightness

Revision as of 12:13, 27 December 2013

TODO: {{#todo:InProgress(12.27.13-11:03->JG+)|Jgreene|oe 4,oe 5,jg,md,InProgress}}

This is a guide to the brightness C example project included in the EMAC OE SDK.

This is a simple backlight-brightness control. It's written for the EMAC PPC-E7 and SoM-9307 but it will probably run on anything with a backlight. It implements a slider application in GTK+ that directly controls the backlight through its sysfs interface. It has been tested under Xfbdev/Matchbox.

The brightness project builds one executable: brightness.

Opening, Building and Uploading the Project Files

1. Open the C/C++ editing perspective.

stub

2. Open the project files.

stub

3. Build the project.

stub

4. Upload the executables to the target system.

stub

Usage and Behavior

The brightness C example project creates a GTK+ UI for controlling the backlight-brightness. It gives us a slider, a spinner and a textfield.

Hardware Requirements

The brightness C example project is written for the EMAC PPC-E7 and SoM-9307 but it will probably run on anything with a backlight.

Using brightness

First set the DISPLAY variable.

export DISPLAY=:0.0

Then run the brightness C executable.

./brightness