Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Simple C problem? Am I blind?

Status
Not open for further replies.
Try something like this.


Code C - [expand]
1
2
3
4
5
6
7
void MP3_Set_Volume(char left, char right) {
  unsigned int volume;
 
  volume = (left<<8) + right;             // calculate value  
}
 
MP3_Set_Volume(127 - level, 127 - level);



Are you using VS1053B Chip ?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top