Playback pattern sequences, C/C++ Programming

Assignment Help:

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. 


Related Discussions:- Playback pattern sequences

Linux driver and linux, Project Description: I´ve a need linux programmi...

Project Description: I´ve a need linux programming job. if you are interested, Skills required are C Programming, PCB Layout, Embedded Software, Python, Software Architecture

Explain compound assignment operators, Compound Assignment Operators Ap...

Compound Assignment Operators Apart from the binary and the unary arithmetic operators, we also have compound assignment operators. These are +=, -=, *=, /=, %=. Using these op

I need plugin for amibroker using c++, I need plugin for amibroker using c+...

I need plugin for amibroker using c++ Project Description: Need to prepare plugin for amibroker using c++. Should be system bound after installing. System should show based o

Arrays, how to avoid duplicates strings in an array

how to avoid duplicates strings in an array

Rules of inheritance, Rules of Inheritance: Private members are not...

Rules of Inheritance: Private members are not inherited; the members can be accessed only within its class. It cannot be used through the object. Protected members are

Integration, Write a program to find the area under the curve y = f(x) betw...

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. The area under a curve between two points can b

Luminous Jewels - The Polishing Game, Byteland county is very famous for lu...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Loop, A company needs 200 pencils per year . you cannot simply use this pr...

A company needs 200 pencils per year . you cannot simply use this price as the cost of pencils two years from now. Because of inflation the cost is likely to be higher than it is

#luminous jewel polishing necklace, Ask question # Byteland county is very ...

Ask question # Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particu

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd