Arduino README

The project's README from github.com/esp8266/Arduino. As one markdown file: README.md.

Arduino core for ESP8266 WiFi chip

Quick links

Arduino on ESP8266

This project brings support for the ESP8266 chip to the Arduino environment. It lets you write sketches, using familiar Arduino functions and libraries, and run them directly on ESP8266, with no external microcontroller required.

ESP8266 Arduino core comes with libraries to communicate over WiFi using TCP and UDP, set up HTTP, mDNS, SSDP, and DNS servers, do OTA updates, use a file system in flash memory, and work with SD cards, servos, SPI and I2C peripherals.

Contents

Installing with Boards Manager

Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).

Latest release Latest release

Boards manager link: https://arduino.esp8266.com/stable/package_esp8266com_index.json

Documentation: https://arduino-esp8266.readthedocs.io/en/3.1.2/

Using git version

Also known as latest git or master branch.

Using PlatformIO

PlatformIO is an open source ecosystem for IoT development with a cross-platform build system, a library manager, and full support for Espressif (ESP8266) development. It works on the following popular host operating systems: macOS, Windows, Linux 32/64, and Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard).

Building with make

makeEspArduino is a generic makefile for any ESP8266 Arduino project. Using make instead of the Arduino IDE makes it easier to do automated and production builds.

Documentation

Documentation for latest development version: https://arduino-esp8266.readthedocs.io/en/latest/

Issues and support

ESP8266 Community Forum is a well-established community for questions and answers about Arduino for ESP8266. Stackoverflow is also an alternative. If you need help, have a "How do I..." type question, have a problem with a 3rd party library not hosted in this repo, or just want to discuss how to approach a problem, please ask there.

If you find the forum useful, please consider supporting it with a donation.
Donate

If you encounter an issue which you think is a bug in the ESP8266 Arduino Core or the associated libraries, or if you want to propose an enhancement, you are welcome to submit it here on Github: https://github.com/esp8266/Arduino/issues.

Please provide as much context as possible, as well as the information requested in the issue template:

Contributing

For minor fixes of code and documentation, please go ahead and submit a pull request. A gentle introduction to the process can be found here.

Check out the list of issues that are easy to fix — easy issues pending. Working on them is a great way to move the project forward.

Larger changes (rewriting parts of existing code from scratch, adding new functions to the core, adding new libraries) should generally be discussed by opening an issue first. PRs with such changes require testing and approval.

Feature branches with lots of small commits (especially titled "oops", "fix typo", "forgot to add file", etc.) should be squashed before opening a pull request. At the same time, please refrain from putting multiple unrelated changes into a single pull request.

License and credits

Arduino IDE is developed and maintained by the Arduino team. The IDE is licensed under GPL.

ESP8266 core includes an xtensa gcc toolchain, which is also under GPL.

Esptool.py was initially created by Fredrik Ahlberg (@themadinventor, @kongo), and is currently maintained by Angus Gratton (@projectgus) under GPL 2.0 license.

Espressif's NONOS SDK included in this build is under Espressif MIT License.

ESP8266 core files are licensed under LGPL.

SPI Flash File System (SPIFFS) written by Peter Andersson is used in this project. It is distributed under the MIT license.

umm_malloc memory management library written by Ralph Hempel is used in this project. It is distributed under the MIT license.

SoftwareSerial library and examples written by Peter Lerup. Distributed under LGPL 2.1.

BearSSL library written by Thomas Pornin, built from https://github.com/earlephilhower/bearssl-esp8266, is used in this project. It is distributed under the MIT License.

LittleFS library written by ARM Limited and released under the BSD 3-clause license.

uzlib library written and (c) 2014-2018 Paul Sokolovsky, licensed under the ZLib license (https://www.zlib.net/zlib_license.html). uzlib is based on: tinf library by Joergen Ibsen (Deflate decompression); Deflate Static Huffman tree routines by Simon Tatham; LZ77 compressor by Paul Sokolovsky; with library integrated and maintained by Paul Sokolovsky.

Toolchain repo

Lwip link layer repo

SoftwareSerial repo

Serial Monitor Arduino IDE plugin Original discussion here, quick download there.

FTP Client/Server Library

Arduino (esp8266/Arduino)

Searching Database…

16.7K ·GitHub
这是什么?这是适用于 Arduino IDE 的 ESP8266 核心包。它为 Arduino 环境加入了对 ESP8266 WiFi 芯片的支持,因此你可以使用熟悉的 Arduino 函数编写程序(sketch),并直接在 ESP8266 上运行,无需外接单片机。
这是独立应用,还是 Arduino IDE 的扩展?它是一个硬件核心/平台包,以开发板定义的形式接入 Arduino IDE(或 PlatformIO),在你现有的 Arduino 程序之外增加对 ESP8266 的支持。
我该如何安装并开始为 ESP8266 开发?先安装 Arduino IDE,然后在 File > Preferences > Additional Boards Manager URLs 中添加 ESP8266 开发板管理器的网址;再从 Tools > Board 打开 Boards Manager,安装 esp8266 平台,最后选择你的 ESP8266 开发板。你也可以使用 PlatformIO,从 git 源代码构建,或使用 makeEspArduino makefile 构建。
除了 Arduino IDE,使用它还需要其他东西吗?只需要 Arduino IDE 1.x 或 2.x(或 PlatformIO),以及一块基于 ESP8266 的开发板;由于核心包可直接在芯片上运行程序,因此不需要外接单片机。
用于正式生产构建的 git/master 版本安全吗?git 版本(master 分支)是最新的开发版,与通过 Boards Manager 安装的稳定版本不同。较大的核心改动在合并前需要讨论和测试,这意味着 master 可能比带标签的发布版本更不稳定。
我可以在哪些操作系统上开发?提供 Windows、Mac OS 和 Linux(32 位和 64 位)的安装包;PlatformIO 还额外支持 Raspberry Pi 等 Linux ARM 开发板。
这个核心包开箱即用提供哪些网络和外设功能?它包含以下库:基于 TCP/UDP 的 WiFi、HTTP、mDNS、SSDP 和 DNS 服务器、OTA 固件更新、基于闪存的文件系统、SD 卡、舵机,以及 SPI 和 I2C 外设。
除了 Arduino IDE,我还能用其他工具构建项目吗?可以。你可以使用 PlatformIO(一个跨平台的物联网构建系统,带库管理器和 IDE 集成),或者使用 makeEspArduino makefile 进行自动化或生产构建,替代 Arduino IDE。
Creator
esp8266
Size
219.3 MB
Stars
16.7K
Age
11y
Commits · 90 Days