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

Define nested class? why can it be useful?, it is a class enclosed in the s...

it is a class enclosed in the scope of another class. For illustration: // Example: Nested class // class OuterClass { class NestedClass { // ... }; // .

Oop, evolutio of object oriented programing

evolutio of object oriented programing

Virtual constructor, Is it possible to have Virtual Constructor? If yes, ho...

Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?

How can we simulate the concept of multiple inheritance, Problem: (a) U...

Problem: (a) Using a class hierarchy of your own choosing, with at least TWO subclass levels, show (i) the use of abstract and concrete forms of Java class and method in you

Functions, program that convert take decimal digit and convert it to binart...

program that convert take decimal digit and convert it to binart digit

Explain passing and returning objects, Passing and Returning Objects Ob...

Passing and Returning Objects Objects can be passed to a function and returned back just like normal variables. When an object is passed by content, the compiler makes another

C program for function of find the factorial , C Program for FUNCTION OF FI...

C Program for FUNCTION OF FIND THE FACTORIAL float factorial(float); void main() {           float i=0,c=0;           clrscr();           printf("ENTER THE DIGI

Simple object-oriented program, This assignment is to be undertaken individ...

This assignment is to be undertaken individually - no group work is permitted. Background information This assignment is an exercise in simple object-oriented programming and, acco

How to write Bernoulli''s principle, compose a C program to solve the equat...

compose a C program to solve the equation z2=(p1/Pg)+(v1^2/2g)+z1 p1=100kpa,v1=2m/s z1=3m P=1000kg/m^3 define g=9.81

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