FlashAir iSDIO sample
Dependencies: FlashAir_iSDIO SDFileSystem mbed
Revision 2:b961b87d7040, committed 2018-09-20
- Comitter:
- hogejun
- Date:
- Thu Sep 20 01:18:55 2018 +0000
- Parent:
- 1:8aaee4f08dbc
- Commit message:
- delete debug priniting
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8aaee4f08dbc -r b961b87d7040 main.cpp --- a/main.cpp Mon Sep 17 23:56:12 2018 +0000 +++ b/main.cpp Thu Sep 20 01:18:55 2018 +0000 @@ -8,7 +8,7 @@ #include "mbed.h" #include "FlashAir_iSDIO.h" -//#define SD_iSDIO FlashAir_iSDIO +//#define USE_CONSOLE #if defined(TARGET_LPC11U24) FlashAir_iSDIO sd(p11, p12, p13, p14, "sd"); // MOSI, MISO, SCLK, SSEL @@ -46,16 +46,22 @@ uint32_t sequenceId ; ledG=0; ledB=0; +#ifdef USE_CONSOLE console.printf("start FlashAir iSDIO sample\n"); +#endif // supply power to SD card SD_VEN = 1; wait(5.0); if (SD_CD) { +#ifdef USE_CONSOLE console.printf("SD: Not dected\n"); +#endif } else { +#ifdef USE_CONSOLE console.printf("SD: Detected\n"); +#endif } // Initialize card @@ -81,7 +87,7 @@ // 2. issue establish command // 3. wait resoonse sequenceId = sd.getNextSequenceId(); - sd.wlan_establish(sequenceId, "sdiotest", "12345678", FlashAir_iSDIO::ENCMODE_WPA2PSK_AES); + sd.wlan_establish(sequenceId, "isdiotest", "12345678", FlashAir_iSDIO::ENCMODE_WPA2PSK_AES); wait(5.0); ledG = 0;