Streams USB audio with sound effects applied. Sound effect selected by joystick and intensity altered by tilting the mbed. Output to the mbed-application-board phono jack.

Dependencies:   C12832_lcd MMA7660 USBDevice mbed

/media/uploads/bw/img_1293.jpg

/* Uses the mbed LPC1768 and mbed-application-board to create a USB audio device
 * that streams audio from a host computer to headphones or powered speakers. 
 * A couple different sound effects can be applied to the stream in real-time,
 * and tilting the mbed alters intensity of the effect.
 *
 *                                               ECHO
 *       The joystick selects )                   |
 *       one of three effect  )       STRAIGHT -  o  - STRAIGHT
 *       modes.               )                   |
 *                                              REVERB   
 * 
 *
 *
 *                                               \\           ||    
 *       Tilting the mbed     )      ======       \\          ||
 *       determines intensity )                    \\         ||
 *       of the effect.       )
 *                                     0%         50%         100%  
 *
 * The LCD display shows the current effect mode, intesity and buffer level.
*/

user_interface.h

Committer:
bw
Date:
2014-03-27
Revision:
2:9429f84ea165
Parent:
0:bbf6cf0eab95

File content as of revision 2:9429f84ea165:

/*******************************************************************************
 * Mangages LCD display, joystick and accelerometer for user interface.
 * Bryan Wade
 * 27 MAR 2014
 ******************************************************************************/
#ifndef USER_INTERFACE_H
#define USER_INTERFACE_H

#include "effects.h"

// Initialize module.
void UI_Initialize(void);

// Update the display and poll all input devices.
void UI_Update(int32_t bufferLevel);

// Get the effect mode selected by joystick.
effect_mode_t UI_GetEffectMode(void);

// Get the effect gain selected by accelerometer tilt.
uint16_t UI_GetEffectGain(void);

#endif