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
This project brings support for ESP8266 chip to the Arduino environment. ESP8266WiFi library bundled with this project has the same interface as the WiFi Shield library, making it easy to re-use existing code and libraries.
7
8
@@ -14,6 +15,8 @@ Starting with 1.6.4, Arduino allows installation of third-party platform package
14
15
- Enter ```http://arduino.esp8266.com/package_esp8266com_index.json``` into *Additional Board Manager URLs* field. You can add multiple URLs, separating them with commas.
15
16
- Open Boards Manager from Tools > Board menu and install *esp8266* platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
@@ -41,7 +44,7 @@ GPIO16 can be ```INPUT```, ```OUTPUT``` or ```INPUT_PULLDOWN```.
41
44
```analogRead(A0)``` reads the value of the ADC channel connected to the TOUT pin.
42
45
43
46
```analogWrite(pin, value)``` enables software PWM on the given pin. PWM may be used on pins 0 to 15.
44
-
Call ```analogWrite(pin, 0)``` to disable PWM on the pin.
47
+
Call ```analogWrite(pin, 0)``` to disable PWM on the pin.```value``` may be in range from 0 to ```PWMRANGE```, which is currently equal to 1023.
45
48
46
49
Pin interrupts are supported through ```attachInterrupt```, ```detachInterrupt``` functions.
47
50
Interrupts may be attached to any GPIO pin, except GPIO16. Standard Arduino interrupt
@@ -85,7 +88,7 @@ Both ```Serial``` and ```Serial1``` objects support 5, 6, 7, 8 data bits, odd (O
85
88
#### Progmem ####
86
89
87
90
The Program memory features work much the same way as on a regular Arduino; placing read only data and strings in read only memory and freeing heap for your application.
88
-
The important difference is that on the esp8266 the literal strings are not pooled. This means that the same literal string defined inside a ```F("")``` and/or ```PSTR("")``` will take up space for each instance in the code. So you will need to manage the duplicate strings yourself.
91
+
The important difference is that on the esp8266 the literal strings are not pooled. This means that the same literal string defined inside a ```F("")``` and/or ```PSTR("")``` will take up space for each instance in the code. So you will need to manage the duplicate strings yourself.
89
92
90
93
#### WiFi(ESP8266WiFi library) ####
91
94
@@ -171,8 +174,8 @@ Several APIs may be used to get flash chip info:
Library was adapted to work with ESP8266 by including register definitions into OneWire.h
174
-
Note that if you have OneWire library in your Arduino/libraries folder, it will be used
175
-
instead of the one that comes with the Arduino IDE (this one).
177
+
Note that if you already have OneWire library in your Arduino/libraries folder, it will be used
178
+
instead of the one that comes with this package.
176
179
177
180
#### mDNS responder (ESP8266mDNS library) ####
178
181
@@ -185,11 +188,12 @@ See attached example and library README file for details.
185
188
Libraries that don't rely on low-level access to AVR registers should work well. Here are a few libraries that were verified to work:
186
189
187
190
-[aREST](https://github.com/marcoschwartz/aREST) REST API handler library.
188
-
-[PubSubClient](https://github.com/knolleary/pubsubclient) MQTT library. Use this [sample](https://gist.github.com/igrr/7f7e7973366fc01d6393) to get started.
191
+
-[PubSubClient](https://github.com/Imroy/pubsubclient) MQTT library by @Imroy.
189
192
-[DHT11](https://github.com/adafruit/DHT-sensor-library) - initialize DHT as follows: ```DHT dht(DHTPIN, DHTTYPE, 15);```
-[NeoPixelBus](https://github.com/Makuna/NeoPixelBus) - Arduino NeoPixel library compatible with esp8266.
192
195
-[RTC](https://github.com/Makuna/Rtc) - Arduino Library for Ds1307 & Ds3231 compatible with esp8266.
196
+
-[Blynk](https://github.com/blynkkk/blynk-library) - easy IoT framework for Makers (check out the [Kickstarter page](http://tiny.cc/blynk-kick)).
193
197
194
198
#### Upload via serial port ####
195
199
Pick the correct serial port.
@@ -253,3 +257,7 @@ Espressif SDK included in this build is under Espressif Public License.
253
257
Esptool written by Christian Klippel is licensed under GPLv2, currently maintained by Ivan Grokhotkov: https://github.com/igrr/esptool-ck.
254
258
255
259
ESP8266 core support, ESP8266WiFi, Ticker, ESP8266WebServer libraries were written by Ivan Grokhotkov, [email protected].
260
+
261
+
[SPI Flash File System (SPIFFS)](https://github.com/pellepl/spiffs) written by Peter Andersson is used in this project. It is distributed under MIT license.
0 commit comments