moeur / Arduino_ESP8266

Libraries and Examples for ESP8266 programming from the Arduino IDE.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##Arduino_ESP8266##

Libraries and examples for programming the ESP8266 from within the Arduino IDE.

###NTP Library###

gets the current time from an NTP server or pool of servers. This code is a modified version of the example Time_NTP.pde which is included with the time library.

###TM1637 Library###

Unlike the ubiquitous MAX7219 LED display driver, the TM1637 can be run from 3.3V. Do a search for "TM1637 Display" from ebay or aliexpress and you'll find a 4-digit module with a clock colon for under $1.50. This library gives you access to one of these 4-digit modules to display time or integers. It requires two dedicated pins on the ESP8266 for communication.

###WiFiClock Example###

It uses the system clock to keep track of time. A TM1637 module connected to the ESP8266 will display this time. The time is kept current by hourly requests from an NTP server pool.

WiFi connection

You'll notice that there is no ssid or password hard wired into the code. If the ESP8266 has been previously connected to your network, it will remember your credentials and use them to reconnect. If this is the first time this module is to be connected to the network, this code waits to retrieve your ssid and password over the serial port.

A variation on this is to have the module switch to AP+STA mode and allow the user to connect from another WiFi device to configure the module. This is what's done in this HTTPD example.

About

Libraries and Examples for ESP8266 programming from the Arduino IDE.


Languages

Language:C++ 70.7%Language:Arduino 29.3%