Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: cc3000_hostdriver_mbedsocket mbed
Fork of cc3000_hello_world_demo by
Revision 7:a4e91e42f008, committed 2014-10-14
- Comitter:
- michaeljkoster
- Date:
- Tue Oct 14 15:11:21 2014 +0000
- Parent:
- 6:9f2ba6521ecc
- Child:
- 8:f784df013169
- Commit message:
- added sparkfun Wifi shield
Changed in this revision
--- a/NVIC_set_all_priorities.lib Tue Jun 03 08:07:15 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/frankvnk/code/NVIC_set_all_priorities/#676bbfffe9f6
--- a/cc3000_hostdriver_mbedsocket.lib Tue Jun 03 08:07:15 2014 +0000 +++ b/cc3000_hostdriver_mbedsocket.lib Tue Oct 14 15:11:21 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/#50ab13d8f2dc +http://mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/#ca8c234997c0
--- a/main.cpp Tue Jun 03 08:07:15 2014 +0000
+++ b/main.cpp Tue Oct 14 15:11:21 2014 +0000
@@ -29,8 +29,9 @@
#elif (MY_BOARD == MBED_BOARD_EXAMPLE)
cc3000 wifi(p9, p10, p8, SPI(p5, p6, p7), "ssid", "key", WPA2, false);
Serial pc(USBTX, USBRX);
-#else
-
+#elif (MY_BOARD == SPARKFUN_WIFI_SHIELD)
+cc3000 wifi(D2, D7, D10, SPI(D11, D12, D13), "ABRACADABRA-2G", "OPENSESAME", WPA2, false); //SparkFun Board on Arduino pin definitions
+Serial pc(USBTX, USBRX);
#endif
/**
@@ -40,7 +41,7 @@
*/
int main() {
init(); /* board dependent init */
- pc.baud(115200);
+ pc.baud(9600);
printf("cc3000 Hello World demo. \r\n");
wifi.init();
--- a/main.h Tue Jun 03 08:07:15 2014 +0000 +++ b/main.h Tue Oct 14 15:11:21 2014 +0000 @@ -20,8 +20,9 @@ #define WIFI_DIPCORTEX 2 #define MBED_BOARD_EXAMPLE 3 #define UNDEFINED 4 +#define SPARKFUN_WIFI_SHIELD 5 -#define MY_BOARD WIGO +#define MY_BOARD SPARKFUN_WIFI_SHIELD void init();
