Added Sparkfun WiFi Shield

Dependencies:   cc3000_hostdriver_mbedsocket mbed

Fork of cc3000_hello_world_demo by Martin Kojtal

Files at this revision

API Documentation at this revision

Comitter:
michaeljkoster
Date:
Tue Oct 14 22:48:10 2014 +0000
Parent:
8:f784df013169
Commit message:
Add Adafruit WiFi Shield

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r f784df013169 -r 053a5e3e4c06 main.cpp
--- a/main.cpp	Tue Oct 14 15:27:59 2014 +0000
+++ b/main.cpp	Tue Oct 14 22:48:10 2014 +0000
@@ -30,7 +30,10 @@
 cc3000 wifi(p9, p10, p8, SPI(p5, p6, p7), "ssid", "key", WPA2, false);
 Serial pc(USBTX, USBRX);
 #elif (MY_BOARD == SPARKFUN_WIFI_SHIELD)
-cc3000 wifi(D2, D7, D10, SPI(D11, D12, D13), "ssid", "key", WPA2, false); //SparkFun Board on Arduino pin definitions
+cc3000 wifi(D2, D7, D10, SPI(D11, D12, D13), "demo", "ARMDEMO1", WPA2, false); //SparkFun Board on Arduino pin definitions
+Serial pc(USBTX, USBRX);
+#elif (MY_BOARD == ADAFRUIT_WIFI_SHIELD)
+cc3000 wifi(D3, D5, D10, SPI(D11, D12, D13), "demo", "ARMDEMO1", WPA2, false); //SparkFun Board on Arduino pin definitions
 Serial pc(USBTX, USBRX);
 #endif
 
diff -r f784df013169 -r 053a5e3e4c06 main.h
--- a/main.h	Tue Oct 14 15:27:59 2014 +0000
+++ b/main.h	Tue Oct 14 22:48:10 2014 +0000
@@ -21,8 +21,9 @@
 #define MBED_BOARD_EXAMPLE 3
 #define UNDEFINED          4
 #define SPARKFUN_WIFI_SHIELD    5
+#define ADAFRUIT_WIFI_SHIELD    6
 
-#define MY_BOARD SPARKFUN_WIFI_SHIELD
+#define MY_BOARD ADAFRUIT_WIFI_SHIELD
 
 void init();
 
diff -r f784df013169 -r 053a5e3e4c06 mbed.bld
--- a/mbed.bld	Tue Oct 14 15:27:59 2014 +0000
+++ b/mbed.bld	Tue Oct 14 22:48:10 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file