hmueller01 / wiringESP

Partial implementation of the Arduino Wiring API for the ESP8266.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About wiringESP

This is a partial implementation of the Arduino Wiring API for the ESP8266 SDK.

Requirements

  • ESP8266 board, e.g. ESP12E (ebay)

Prerequisites

Installation and usage

wiringESP can be compiled and installed as a local library

git clone --recursive https://github.com/hmueller01/wiringESP
cd wiringESP
#clean
make clean
#make
make ESP_ROOT=/opt/Espressif SDK_BASE=/opt/Espressif/ESP8266_NONOS_SDK
#installing
make PREFIX=/opt/Espressif/local install

Add /opt/Espressif/local/lib and /opt/Espressif/local/include/ to your projects compile path. Use like this:

#include "wiringESP/wiringESP.h"

...

pinMode(12, OUTPUT); // set GPIO pin 12 to output
digitalWrite(12, HIGH); // switch pin 12 high/on

For further usage see also Wiring API reference documention.

Notes

Not all Wiring API stuff is implemented. Basically things needed by rc-switch is done.

About

Partial implementation of the Arduino Wiring API for the ESP8266.

License:MIT License


Languages

Language:C++ 39.8%Language:C 38.8%Language:Makefile 21.3%