Playback pattern sequences, C/C++ Programming

This task involves creating a new class(es) that will allow the system to playback pattern sequences using the Neo  Freerunner  hardware. The first thing to note is that the vibrator is treated similarly to how the phone views LEDs, meaning that the intensity of the vibration is determined by a number from 0 to 255 (brightness). Hardware on the Neo Freerunner can be read or written to by accessing special system files. The 'files' to access this hardware can be found in (these are easy-access symlinks): 

/sys/class/leds/

In this directory you will find several special files  that can  manipulate  its physical functionality (Linux: Device Files). An example of how to "Pulse" the Neo vibrator can be found inside the function SetVibrateNow within open source file:

/devel/qt-extended-4.4.2/devices/neo/src/plugins/phonevendors/neo/vendor_neo.cpp

The sample pattern files provided use the format of specifying the strength (0-255) and duration (milliseconds) of a single 'note' on each line of the file. For example, a file with:

150,1000
0,500

This means that the hardware should activate at a strength of 150 for 1sec, followed by nothing for 0.5secs. In the case of the LEDs, as there are three LEDs - the pattern file will be formatted as follows:


1,0,1,255,1000
1,0,0,255,500
1,1,1,0,1000 or 0,0,0,x,1000 (x can be anything)
1,1,0,255,1000

This means that, blue and red leds activate for 1sec, blue remains on for 0.5sec, no activity for 1sec, followed by purple (blue/orange) led for 1 second.

This module should only exist in PhoneBookDialog and can only be accessed by other classes using signal and slot connections made in PhoneBookDialog. 

Posted Date: 2/22/2013 6:14:20 AM | Location : United States







Related Discussions:- Playback pattern sequences, Assignment Help, Ask Question on Playback pattern sequences, Get Answer, Expert's Help, Playback pattern sequences Discussions

Write discussion on Playback pattern sequences
Your posts are moderated
Related Questions
Can any constructor throw an exception? How to handle error while the constructor fails?

Consider text comprised of sentences and sentences comprised of words. Words in a sentence will be space delimited. Given a text and K strings, task is to find out the number valid

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.   #include float start_poin

Cross Platform Clinet app for a vpn Project Description: We want a cross platform client app for VPN. The app must have the subsequent options below: 1. Must be an open

Prepare an Application in C# or C++ Project Description: We are seeking someone who can write a program in C# or C++. The idea is to prepare the program using a Cross Plat

Why PHP is also known as scripting language? PHP is fundamentally a general purpose language, which is used to write scripts. Scripts are normal computer files which comprises

Question 1 . Write a brief note on Aggregation Question 2 . Discuss briefly on constructors Question 3 . What are the important advantages of Inheritance? Question 4 .

New App Production company is seeking an organized and highly accomplished design team to prepare the first (and potentially more) of my companies' App concepts, intended completel

what is the first thing I need to know about Programming?

Overloading a method (or function) in C++ is the ability for functions of the similar name to be defined as long as these methods have dissimilar signatures (different set of param