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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…