Library for MP3 module. http://www.aitendo.com/product/17913

Dependents:   nekosensya

Embed: (wiki syntax)

« Back to documentation index

WT20003M03 Class Reference

WT20003M03 Class Reference

WT20003M03 control class, based on a PwmOut. More...

#include <WT2003M03.h>

Public Member Functions

 WT20003M03 (PinName txpin, PinName rxpin)
 Create a servo object connected to the specified PwmOut pin.
void Play (unsigned int address)
 Set the addres Play address section audio.
void Play ()
 Play/recover current address audio.
void volume (unsigned int volume)
 Set the volume.
void Pause ()
 Pause current address audio.
void Stop ()
 After send command, single cycle.
void Next ()
 Play next.
void Previous ()
 Play Previous.
char ReadVolume ()
 Read volume.
char ReadState ()
 Read state.

Detailed Description

WT20003M03 control class, based on a PwmOut.

Example:

 // Continuously sweep the servo through it's full range
 #include "mbed.h"
 #include "WT20003M03.h"
 
 WT20003M03 myaudio(p21);
 
 int main() {
       mysound.volume(8);
     while(1) {
             myaudio.play();
             wait(10);
     }
 }

Definition at line 47 of file WT2003M03.h.


Constructor & Destructor Documentation

WT20003M03 ( PinName  txpin,
PinName  rxpin 
)

Create a servo object connected to the specified PwmOut pin.

Parameters:
pinDigitalOut pin to connect to

Definition at line 27 of file WT2003M03.cpp.


Member Function Documentation

void Next (  )

Play next.

Parameters:
Playnext.

Definition at line 75 of file WT2003M03.cpp.

void Pause (  )

Pause current address audio.

Parameters:
Pausecurrent address audio.

Definition at line 62 of file WT2003M03.cpp.

void Play ( unsigned int  address )

Set the addres Play address section audio.

Parameters:
addres

Definition at line 31 of file WT2003M03.cpp.

void Play (  )

Play/recover current address audio.

Parameters:
Play/recovercurrent address audio.

Definition at line 42 of file WT2003M03.cpp.

void Previous (  )

Play Previous.

Parameters:
PlayPrevious.

Definition at line 84 of file WT2003M03.cpp.

char ReadState (  )

Read state.

Parameters:
Readstate.

Definition at line 102 of file WT2003M03.cpp.

char ReadVolume (  )

Read volume.

Parameters:
Readvolume.

Definition at line 93 of file WT2003M03.cpp.

void Stop (  )

After send command, single cycle.

Parameters:
Aftersend command, single cycle.

Definition at line 66 of file WT2003M03.cpp.

void volume ( unsigned int  volume )

Set the volume.

Parameters:
voluneaudio volume(0-16) in volume

Definition at line 51 of file WT2003M03.cpp.