modified for VS1033
Dependents: 11U68_MP3Player with TFTLCD 11U68_MP3Player-with-TFTLCD Mp3_1
Fork of VS1033 by
Revision 9:1dd0ecaac8e5, committed 2015-07-16
- Comitter:
- nameless129
- Date:
- Thu Jul 16 18:17:42 2015 +0000
- Parent:
- 8:171effe49517
- Child:
- 10:a8594af40a50
- Commit message:
- add vol control
Changed in this revision
VS1053.cpp | Show annotated file Show diff for this revision Revisions of this file |
VS1053.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/VS1053.cpp Thu Jul 16 12:42:50 2015 +0000 +++ b/VS1053.cpp Thu Jul 16 18:17:42 2015 +0000 @@ -94,6 +94,12 @@ bsync = 1; } +void VS1053::VolControl(uint16_t vol) +{ + writeReg(SCI_VOL,vol); +} + + /** SDI Send a data byte to VS1053. */ void VS1053::sendDataByte(uint8_t data) { sdi_en();
--- a/VS1053.h Thu Jul 16 12:42:50 2015 +0000 +++ b/VS1053.h Thu Jul 16 18:17:42 2015 +0000 @@ -67,7 +67,8 @@ bool stop(); void sine_test_activate(unsigned char wave); void sine_test_deactivate(); - + void VS1053::VolControl(uint16_t vol); + private: void writeReg(uint8_t, uint16_t); uint16_t readReg(uint8_t);