Arduino ESP8266 库 [英] Arduino ESP8266 Library

查看:50
本文介绍了Arduino ESP8266 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 arduino 的新手,刚刚给自己买了一个 UNO 和一个 ESP8266 模块.我已设法将它们全部正确接线并使用 AT 命令连接到我的家庭网络.

I am new to arduino and just picked up myself an UNO and an ESP8266 module. I've managed to wire them all up properly and connected to my home network using the AT commands.

但现在我试图按照互联网上的教程进行操作,但问题是每个示例都包含一个库

But now im trying to follow tutorials on the internet but the problem is every example includes a library

#include <ESP8266WiFi.h>

比如这个示例教程https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/example-sketch-ap-web-server

所以我尝试使用谷歌搜索但找不到任何东西.我假设那是因为它真的很简单而且我遗漏了一些很明显的东西.

So I have tried googling for it but can't find anything. I'm assuming thats because its really simple and Im missing something quite obvious.

帮助?

推荐答案

如果您希望将 Arduino 用作 ESP8266 项目的主要部分,有几种方法.

If you wish to use the Arduino as the main part of your ESP8266 project, there are several ways to go.

  • 使用 Arduino 向 ESP8266 发出 AT 命令.
  • 通过编程来创建您自己的协议或消息系统带有(例如)nodemcu 或 Arduino/ESP8266 项目的 ESP8266 或Espressif 或其他,然后使用相同的程序对您的 Arduino 进行编程协议或消息传递系统,以便两人可以交谈.

或者,直接对您的 ESP8266 进行编程.不需要 Arduino.这样做,您可以扭转局面并让 ESP8266 向 Arduino 发出消息,例如,如果您希望 Arduino 的许多 GPIO 和感应引脚做某事.如果您只需要几个额外的 GPIO 引脚,请查看 ESP8266 范围以获得更多 GPIO 引脚,例如 ESP8266-12

Alternatively, just program your ESP8266 directly. No Arduino required. Doing so, you can turn the tables and get the ESP8266 to issue messages to the Arduino if for example if you wanted the many GPIO and sense pins of the Arduino to do something. If you only need a couple of extra GPIO pins, look at the ESP8266 range to get more GPIO pins, such as the ESP8266-12

选择哪个?

  • nodemcu 将使您对 ESP8266 的功能有一个很好的了解并且可能是一个很好的入门者,易于刷写,易于编程,但除了最基本的程序之外,它是一个糟糕的终结者.
  • espressif 的工具链很大,刷起来不爽,您将处于最前沿,但是社区的支持是最小
  • Arduino/ESP8266 项目很棒,易于刷写,速度非常快,非常稳定,与 nodemcu 不同,您可以创建一个大型项目.如您所见,任何以 #include 开头的 arduino 项目都不是针对 arduino,而是针对使用 arduino IDE https://github.com/esp8266/Arduino
  • nodemcu will give you a good idea of the capabilities of the ESP8266 and may be a good starter, easy to flash, easy to program, but it is a poor finisher except for the most basic of programs.
  • espressif has a large toolchain, not pleasant to flash, you'll be at the cutting edge, however the community support is minimal
  • The Arduino/ESP8266 project is awesome, easy to flash, very fast, very stable, and unlike nodemcu you can create a large project. As you noticed, any arduino project starting with #include <ESP8266WiFi.h> is not for the arduino, but for the ESP8266 using the arduino IDE https://github.com/esp8266/Arduino

这篇关于Arduino ESP8266 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆