ST
/
example-IDW01M1-mbed-Cloud-connect
Generic example for any board with IDMW0xM1 shield
Diff: main.cpp
- Revision:
- 20:63be9b2e5c9f
- Parent:
- 19:5dd1ec7fdf0d
- Child:
- 21:1e89d014263d
--- a/main.cpp Wed Feb 21 14:37:02 2018 +0100 +++ b/main.cpp Thu Feb 22 10:15:13 2018 +0100 @@ -28,17 +28,15 @@ #include "SpwfSAInterface.h" #define LED_OFF 1 -#define LED_RED LED1 // betzw: `LED1` conflicts with SPI, mayber better use `NC` +#define LED_RED LED1 // betzw: `LED1` conflicts with SPI, maybe better use `NC` DigitalOut led(LED_RED, LED_OFF); InterruptIn button(BUTTON1); // EthernetInterface net; SpwfSAInterface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX); -#if 0 // betzw SDBlockDevice sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS); FATFileSystem fs("sd"); -#endif // Pointers to the resources that will be created in main_application(). static MbedCloudClientResource* pattern_ptr; @@ -144,7 +142,6 @@ // Initialize button interrupt button.fall(&button_press); -#if 0 // betzw // Initialize SD card int status = sd.init(); if (status != BD_ERROR_OK) { @@ -165,9 +162,6 @@ printf("Reformat and mount complete\r\n"); } } -#else - int status; -#endif printf("Connecting to the network using WiFi...\n");