Wire H Library Download

FrostWire is a free and easy BitTorrent Client, Cloud Downloader and Media Player for Windows, Mac, Linux and Android Search, Download, Play and Share Files. Wire library used on Teensy boards. Contribute to PaulStoffregen/Wire development by creating an account on GitHub.

  • WiringPi is a PIN based GPIO access library written in C for the BCM2835, BCM2836 and BCM2837 SoC devices used in all Raspberry Pi. The source code is not publicly available but may be made available to those who wish commercial support.
  • Copy the contributed library's folder into the 'libraries' folder at this location. You will need to create the 'libraries' folder if this is your first contributed library. Follow the links below for more information about each library. Contributed libraries are developed, documented, and maintained by members of the Wiring community.
  • Open up File-Examples-RTClib-ds3231 and upload to your Arduino wired up to the RTC. Upload to your Arduino and check the serial console @ 9600 baud. After a few seconds, you'll see the report that the Arduino noticed this is the first time the DS3231 has been powered up, and will set the time based on the Arduino sketch.


WiringPi is PRE-INSTALLED with standard Raspbian systems. Please DO NOT try to follow any installation instructions you may be given anywhere else. THIS PAGE is the definitive and proper way to do it.

Also note: WiringPi is developed and tested on a Raspberry Pi ONLY. It is for C and RTB BASIC programs on. If you are trying to install it on anything else, then good luck.

To update or install on a Raspbian-Lite system:

is all you need.

From source:

WiringPi is maintained under GIT for ease of change tracking, however there is a Plan B if you’re unable to use GIT for whatever reasons (usually your firewall will be blocking you, so do check that first!)

Note: wiringPi is NOT hosted on Github. There are many forks that you may find there, but they are not the original version maintained by myself.

To view the wiringPi sources, then go to:

and select the wiringPi link.

To install…


First check that wiringPi is not already installed. In a terminal, run:

If you get something, then you have it already installed. The next step is to work out if it’s installed via a standard package or from source. If you installed it from source, then you know what you’re doing – carry on – but if it’s installed as a package, you will need to remove the package first. To do this:

Then carry on.

If you do not have GIT installed, then under any of the Debian releases (e.g. Raspbian), you can install it with:

If you get any errors here, make sure your Pi is up to date with the latest versions of Raspbian: (this is a good idea to do regularly, anyway)

To obtain WiringPi using GIT:

If you have already used the clone operation for the first time, then

Will fetch an updated version then you can re-run the build script below.

To build/install there is a new simplified script:

The new build script will compile and install it all for you – it does use the sudo command at one point, so you may wish to inspect the script before running it.

Plan B

Click on this URL: (it should open in a new page)

Then look for the link marked snapshot at the right-hand side. You want to click on the top one.

This will download a tar.gz file with a name like wiringPi-98bcb20.tar.gz. Note that the numbers and letters after wiringPi (98bcb20 in this case) will probably be different – they’re a unique identifier for each release.

You then need to do this to install:

Note that the actual filename will be different – you will have to check the name and adjust accordingly.

Test wiringPi’s installation

run the gpio command to check the installation:


That should give you some confidence that it’s working OK.

WiringPi is released under the GNU Lesser Public License version 3.

Table of Contents

WiFi(ESP8266WiFi library)

This is mostly similar to WiFi shield library. Differences include:

  • WiFi.mode(m): set mode to WIFI_AP, WIFI_STA, WIFI_AP_STA or WIFI_OFF.
  • call WiFi.softAP(ssid) to set up an open network
  • call WiFi.softAP(ssid, password) to set up a WPA2-PSK network (password should be at least 8 characters)
  • WiFi.macAddress(mac) is for STA, WiFi.softAPmacAddress(mac) is for AP.
  • WiFi.localIP() is for STA, WiFi.softAPIP() is for AP.
  • WiFi.printDiag(Serial) will print out some diagnostic info
  • WiFiUDP class supports sending and receiving multicast packets on STA interface.When sending a multicast packet, replace udp.beginPacket(addr, port) withudp.beginPacketMulticast(addr, port, WiFi.localIP()).When listening to multicast packets, replace udp.begin(port) withudp.beginMulticast(WiFi.localIP(), multicast_ip_addr, port).You can use udp.destinationIP() to tell whether the packet received wassent to the multicast or unicast address.

WiFiServer, WiFiClient, and WiFiUDP behave mostly the same way as with WiFi shield library.Four samples are provided for this library.You can see more commands here: http://www.arduino.cc/en/Reference/WiFi


Library for calling functions repeatedly with a certain period. Two examples included.

It is currently not recommended to do blocking IO operations (network, serial, file) from Tickercallback functions. Instead, set a flag inside the ticker callback and check for that flag inside the loop function.


This is a bit different from standard EEPROM class. You need to call EEPROM.begin(size)before you start reading or writing, size being the number of bytes you want to use.Size can be anywhere between 4 and 4096 bytes.

EEPROM.write does not write to flash immediately, instead you must call EEPROM.commit()whenever you wish to save changes to flash. EEPROM.end() will also commit, and willrelease the RAM copy of EEPROM contents.

EEPROM library uses one sector of flash located just after the SPIFFS.

Three examples included.

I2C (Wire library)

Wire library currently supports master mode up to approximately 450KHz.Before using I2C, pins for SDA and SCL need to be set by callingWire.begin(int sda, int scl), i.e. Wire.begin(0, 2) on ESP-01,else they default to pins 4(SDA) and 5(SCL).

Arduino Wire Library Download


SPI library supports the entire Arduino SPI API including transactions, including setting phase (CPHA).Setting the Clock polarity (CPOL) is not supported, yet (SPI_MODE2 and SPI_MODE3 not working).


An ESP8266 port of SoftwareSerial library done by Peter Lerup (@plerup) supports baud rate up to 115200 and multiples SoftwareSerial instances. See https://github.com/plerup/espsoftwareserial if you want to suggest an improvement or open an issue related to SoftwareSerial.

ESP-specific APIs

Wire.h Library Download

APIs related to deep sleep and watchdog timer are available in the ESP object, only available in Alpha version.

ESP.deepSleep(microseconds, mode) will put the chip into deep sleep. mode is one of WAKE_RF_DEFAULT, WAKE_RFCAL, WAKE_NO_RFCAL, WAKE_RF_DISABLED. (GPIO16 needs to be tied to RST to wake from deepSleep.)

ESP.restart() restarts the CPU.

Wire.h Library Download Github

ESP.getFreeHeap() returns the free heap size.

ESP.getChipId() returns the ESP8266 chip ID as a 32-bit integer.

Several APIs may be used to get flash chip info:

ESP.getFlashChipId() returns the flash chip ID as a 32-bit integer.

ESP.getFlashChipSize() returns the flash chip size, in bytes, as seen by the SDK (may be less than actual size).

ESP.getFlashChipSpeed(void) returns the flash chip frequency, in Hz.

ESP.getCycleCount() returns the cpu instruction cycle count since start as an unsigned 32-bit. This is useful for accurate timing of very short actions like bit banging.

ESP.getVcc() may be used to measure supply voltage. ESP needs to reconfigure the ADCat startup in order for this feature to be available. Add the following line to the topof your sketch to use getVcc:

TOUT pin has to be disconnected in this mode.

Note that by default ADC is configured to read from TOUT pin using analogRead(A0), andESP.getVCC() is not available.

mDNS and DNS-SD responder (ESP8266mDNS library)

Allows the sketch to respond to multicast DNS queries for domain names like 'foo.local', and DNS-SD (service dicovery) queries.See attached example for details.

Wire.h Library Download Github

#include Wire.h Library Download

SSDP responder (ESP8266SSDP)

SSDP is another service discovery protocol, supported on Windows out of the box. See attached example for reference.

DNS server (DNSServer library)

Implements a simple DNS server that can be used in both STA and AP modes. The DNS server currently supports only one domain (for all other domains it will reply with NXDOMAIN or custom status code). With it clients can open a web server running on ESP8266 using a domain name, not an IP address.See attached example for details.


This library exposes the ability to control RC (hobby) servo motors. It will support upto 24 servos on any available output pin. By defualt the first 12 servos will use Timer0 and currently this will not interfere with any other support. Servo counts above 12 will use Timer1 and features that use it will be effected.While many RC servo motors will accept the 3.3V IO data pin from a ESP8266, most will not be able to run off 3.3v and will require another power source that matches their specifications. Make sure to connect the grounds between the ESP8266 and the servo motor power supply.

Other libraries (not included with the IDE)

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:

  • Adafruit_ILI9341 - Port of the Adafruit ILI9341 for the ESP8266
  • arduinoVNC - VNC Client for Arduino
  • arduinoWebSockets - WebSocket Server and Client compatible with ESP8266 (RFC6455)
  • aREST - REST API handler library.
  • Blynk - easy IoT framework for Makers (check out the Kickstarter page).
  • DHT-sensor-library - Arduino library for the DHT11/DHT22 temperature and humidity sensors. Download latest v1.1.1 library and no changes are necessary. Older versions should initialize DHT as follows: DHT dht(DHTPIN, DHTTYPE, 15)
  • NeoPixel - Adafruit's NeoPixel library, now with support for the ESP8266 (use version 1.0.2 or higher from Arduino's library manager).
  • NeoPixelBus - Arduino NeoPixel library compatible with ESP8266. Use the 'NeoPixelAnimator' branch for ESP8266 to get HSL color support and more.
  • PubSubClient - MQTT library by @Imroy.
  • RTC - Arduino Library for Ds1307 & Ds3231 compatible with ESP8266.
  • Souliss, Smart Home - Framework for Smart Home based on Arduino, Android and openHAB.
  • ST7735 - Adafruit's ST7735 library modified to be compatible with ESP8266. Just make sure to modify the pins in the examples as they are still AVR specific.
  • UTFT-ESP8266 - UTFT display library with support for ESP8266. Only serial interface (SPI) displays are supported for now (no 8-bit parallel mode, etc). Also includes support for the hardware SPI controller of the ESP8266.
  • WiFiManager - WiFi Connection manager with web captive portal. If it can't connect, it starts AP mode and a configuration portal so you can choose and enter WiFi credentials.
Comments are closed.