This example shows how to enable WiFi chip, and disable the interface between BLE & WiFi of NNN50, thus the external Host MCU can use SPI interface to control WiFi under linux base OS
Dependencies: NNN50_WIFI_API mbed
Diff: main.cpp
- Revision:
- 1:ec278fc8dd60
- Parent:
- 0:e5bfd809875e
--- a/main.cpp Mon Mar 13 09:48:50 2017 +0000 +++ b/main.cpp Thu Mar 16 09:12:35 2017 +0000 @@ -22,7 +22,7 @@ DigitalOut WiFi_wake(p18); DigitalOut RF_control_1(p19); DigitalOut RF_control_2(p28); -DigitalOut SPI_SSN(p12); +DigitalIn SPI_SSN(p12); DigitalIn SPI_MISO(p9); DigitalIn SPI_MOSI(p15); DigitalIn SPI_CLK(p11);