AP mode
Dependencies: NetworkSocketAPI WizFi310Interface mbed
Fork of WizFi310_TCP_Echo_Server_Example by
Revision 8:e26236864101, committed 2017-10-03
- Comitter:
- maru536
- Date:
- Tue Oct 03 05:38:58 2017 +0000
- Parent:
- 7:e5500683781b
- Commit message:
- comp
Changed in this revision
VS1053.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/VS1053.cpp Tue Oct 03 03:43:34 2017 +0000 +++ b/VS1053.cpp Tue Oct 03 05:38:58 2017 +0000 @@ -92,7 +92,6 @@ size_t n, sizeSent = 0; unsigned char c; while (socket->recv(&c, sizeof(c)) >= 0 && sizeSent < content_length) { - printf("%c", c); while (!dreq); bsync = 0; spi.write(c);
--- a/main.cpp Tue Oct 03 03:43:34 2017 +0000 +++ b/main.cpp Tue Oct 03 05:38:58 2017 +0000 @@ -27,10 +27,11 @@ #define TEST_MODE 0 #define DEMO_MODE 1 -#define MODE DEMO_MODE +#define MODE TEST_MODE WizFi310Interface wifiInterface(D1, D0, D7, D6, D8, NC, 115200); ShiftRegisterControlClass m_register(PC_10, PC_11, PC_12); +VS1053 *player = new VS1053(PA_08, PA_07, PA_06, PA_00, PA_05, PA_01, PA_02); // mosi, miso, sck, cs, bsync, dreq, rst int main() { @@ -86,7 +87,7 @@ #if MODE == DEMO_MODE //Decoder Init - VS1053 *player = new VS1053(PA_08, PA_07, PA_06, PA_00, PA_05, PA_01, PA_02); // mosi, miso, sck, cs, bsync, dreq, rst + //VS1053 *player = new VS1053(PA_08, PA_07, PA_06, PA_00, PA_05, PA_01, PA_02); // mosi, miso, sck, cs, bsync, dreq, rst player->hardwareReset(); //Make a reset to the VS1053 board player->modeSwitch(); //Patch the VS1054 board to play MP3 files (very important!). #endif