Uses 2 Potentiometers on the app-board to control red and green LED. Blue LED is controlled by using Up and Down buttons on the joystick. When Joystick is pressed down, the song will be played.

Dependencies:   mbed

Fork of app-board-RGB by Chris Styles

Committer:
ArthurSemjonov
Date:
Wed Feb 12 21:07:58 2014 +0000
Revision:
1:4a2a53bbc623
Change the name of the project;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ArthurSemjonov 1:4a2a53bbc623 1 /*
ArthurSemjonov 1:4a2a53bbc623 2 * song.h
ArthurSemjonov 1:4a2a53bbc623 3 *
ArthurSemjonov 1:4a2a53bbc623 4 * Created on: Feb 11, 2014
ArthurSemjonov 1:4a2a53bbc623 5 * Author: Artur Semjonov
ArthurSemjonov 1:4a2a53bbc623 6 */
ArthurSemjonov 1:4a2a53bbc623 7
ArthurSemjonov 1:4a2a53bbc623 8 #ifndef SONG_H_
ArthurSemjonov 1:4a2a53bbc623 9 #define SONG_H_
ArthurSemjonov 1:4a2a53bbc623 10
ArthurSemjonov 1:4a2a53bbc623 11 class Songs
ArthurSemjonov 1:4a2a53bbc623 12 {
ArthurSemjonov 1:4a2a53bbc623 13 public:
ArthurSemjonov 1:4a2a53bbc623 14
ArthurSemjonov 1:4a2a53bbc623 15 Songs();
ArthurSemjonov 1:4a2a53bbc623 16 /* Plays the song based on frq and beat provided. Both frq and beat should be equal
ArthurSemjonov 1:4a2a53bbc623 17 * @param frequency[] array of frequencies of notes
ArthurSemjonov 1:4a2a53bbc623 18 * @param beat[] array of beats for the song
ArthurSemjonov 1:4a2a53bbc623 19 */
ArthurSemjonov 1:4a2a53bbc623 20 void songOfMyPeople(float frequency[], float beat[]);
ArthurSemjonov 1:4a2a53bbc623 21 };
ArthurSemjonov 1:4a2a53bbc623 22
ArthurSemjonov 1:4a2a53bbc623 23
ArthurSemjonov 1:4a2a53bbc623 24 #endif /* SONG_H_ */