12
12
// Option A is enabled by default.
13
13
14
14
/*
15
- * OPTION A: Configure for Arduino WiFi shield
16
- *
17
- * This will configure StandardFirmataWiFi to use the original WiFi library (deprecated) provided
18
- * with the Arduino IDE. It is supported by the Arduino WiFi shield (a discontinued product) and
19
- * is compatible with 802.11 B/G networks.
20
- *
21
- * To configure StandardFirmataWiFi to use the Arduino WiFi shield
22
- * leave the #define below uncommented.
23
- */
24
- #define ARDUINO_WIFI_SHIELD
25
-
26
- //do not modify these next 4 lines
27
- #ifdef ARDUINO_WIFI_SHIELD
28
- #include "utility/WiFiStream.h"
29
- WiFiStream stream ;
30
- #endif
31
-
32
- /*
33
- * OPTION B: Configure for WiFi 101
15
+ * OPTION A: Configure for Arduino MKR1000 or Arduino WiFi Shield 101
34
16
*
35
17
* This will configure StandardFirmataWiFi to use the WiFi101 library, which works with the Arduino WiFi101
36
18
* shield and devices that have the WiFi101 chip built in (such as the MKR1000). It is compatible
@@ -42,14 +24,32 @@ WiFiStream stream;
42
24
* IMPORTANT: You must have the WiFI 101 library installed. To easily install this library, opent the library manager via:
43
25
* Arduino IDE Menus: Sketch > Include Library > Manage Libraries > filter search for "WiFi101" > Select the result and click 'install'
44
26
*/
45
- // #define WIFI_101
27
+ #define WIFI_101
46
28
47
29
//do not modify these next 4 lines
48
30
#ifdef WIFI_101
49
31
#include "utility/WiFi101Stream.h"
50
32
WiFi101Stream stream ;
51
33
#endif
52
34
35
+ /*
36
+ * OPTION B: Configure for Arduino WiFi shield
37
+ *
38
+ * This will configure StandardFirmataWiFi to use the original WiFi library (deprecated) provided
39
+ * with the Arduino IDE. It is supported by the Arduino WiFi shield (a discontinued product) and
40
+ * is compatible with 802.11 B/G networks.
41
+ *
42
+ * To configure StandardFirmataWiFi to use the Arduino WiFi shield
43
+ * leave the #define below uncommented.
44
+ */
45
+ //#define ARDUINO_WIFI_SHIELD
46
+
47
+ //do not modify these next 4 lines
48
+ #ifdef ARDUINO_WIFI_SHIELD
49
+ #include "utility/WiFiStream.h"
50
+ WiFiStream stream ;
51
+ #endif
52
+
53
53
/*
54
54
* OPTION C: Configure for HUZZAH
55
55
*
@@ -148,7 +148,7 @@ char wep_key[] = "your_wep_key";
148
148
149
149
// ignore SPI pins, pin 5 (reset WiFi101 shield), pin 7 (WiFi handshake) and pin 10 (WiFi SS)
150
150
// also don't ignore SS pin if it's not pin 10
151
- // TODO - need to differentiate between Arduino WiFi1 101 Shield and Arduino MKR1000
151
+ // Not needed for Arduino MKR1000.
152
152
#define IS_IGNORE_WIFI101_SHIELD (p ) ((p) == 10 || (IS_PIN_SPI(p) && (p) != SS) || (p) == 5 || (p) == 7)
153
153
154
154
// ignore SPI pins, pin 4 (SS for SD-Card on WiFi-shield), pin 7 (WiFi handshake) and pin 10 (WiFi SS)
0 commit comments