1
Dependents: internet_radio_leo
Fork of VS1053 by
Revision 8:e23900b0f1ca, committed 2016-06-29
- Comitter:
- WizLeo
- Date:
- Wed Jun 29 04:41:26 2016 +0000
- Parent:
- 7:97a8edd44fe9
- Commit message:
- 1
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 |
diff -r 97a8edd44fe9 -r e23900b0f1ca VS1053.cpp --- a/VS1053.cpp Sat Sep 05 12:16:06 2015 +0000 +++ b/VS1053.cpp Wed Jun 29 04:41:26 2016 +0000 @@ -61,7 +61,7 @@ } /** Send a data byte to VS1053. */ -void VS1053::sendDataByte(uint8_t data) { +void VS1053::sendDataByte(char data) { while (!dreq); bsync = 0; spi.write(data); @@ -71,7 +71,7 @@ /** Send a data block specified as a pointer to VS1053. * @return Data length successfully sent. */ -size_t VS1053::sendDataBlock(uint8_t* data, size_t length) { +size_t VS1053::sendDataBlock(char* data, size_t length) { size_t n, sizeSent = 0; if (!data || !length) return 0;
diff -r 97a8edd44fe9 -r e23900b0f1ca VS1053.h --- a/VS1053.h Sat Sep 05 12:16:06 2015 +0000 +++ b/VS1053.h Wed Jun 29 04:41:26 2016 +0000 @@ -50,8 +50,8 @@ ~VS1053(); void hardwareReset(); void modeSwitch(void); - void sendDataByte(uint8_t data); - size_t sendDataBlock(uint8_t* data, size_t length); + void sendDataByte(char data); + size_t sendDataBlock(char* data, size_t length); void clockUp(); bool sendCancel(); bool stop();