You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support for WiFi101 shield
Added support for MKR1000
Removed support for the original WiFi shield
Fixed a bug in the Cheerlights example
Removed code related to Particle device. There is a separate library for Particle.
#error "Uncomment the #define for either USE_WIFI101_SHIELD or USE_ETHERNET_SHIELD"
32
+
#endif
33
+
30
34
31
35
// Make sure that you put a 330 ohm resistor between the arduino
32
36
// pins and each of the color pins on the LED.
33
37
int pinRed = 9;
34
38
int pinGreen = 6;
35
-
int pinBlue = 5;
39
+
int pinBlue = 3;
36
40
37
-
#ifdef ARDUINO_ARCH_AVR
38
-
#ifdef ARDUINO_AVR_YUN
41
+
#if defined(ARDUINO_AVR_YUN)
39
42
#include"YunClient.h"
40
43
YunClient client;
41
-
#else
42
-
43
-
#ifdef USE_WIFI_SHIELD
44
-
#include<SPI.h>
45
-
// ESP8266 USERS -- YOU MUST COMMENT OUT THE LINE BELOW. There's a bug in the Arduino IDE that causes it to not respect #ifdef when it comes to #includes
46
-
// If you get "multiple definition of `WiFi'" -- comment out the line below.
47
-
#include<WiFi.h>
48
-
char ssid[] = "<YOURNETWORK>"; // your network SSID (name)
49
-
char pass[] = "<YOURPASSWORD>"; // your network password
#error "Uncomment the #define for either USE_WIFI101_SHIELD or USE_ETHERNET_SHIELD"
33
+
#endif
34
+
35
+
36
+
#if defined(ARDUINO_AVR_YUN)
33
37
#include"YunClient.h"
34
38
YunClient client;
35
-
#else
36
-
37
-
#ifdef USE_WIFI_SHIELD
38
-
#include<SPI.h>
39
-
// ESP8266 USERS -- YOU MUST COMMENT OUT THE LINE BELOW. There's a bug in the Arduino IDE that causes it to not respect #ifdef when it comes to #includes
40
-
// If you get "multiple definition of `WiFi'" -- comment out the line below.
41
-
#include<WiFi.h>
42
-
char ssid[] = "<YOURNETWORK>"; // your network SSID (name)
43
-
char pass[] = "<YOURPASSWORD>"; // your network password
0 commit comments