This is a partial implementation of the Arduino Wiring API for the ESP8266 SDK.
- ESP8266 board, e.g. ESP12E (ebay)
- Install the cross compiler esp-open-sdk
- Install the ESP8266 SDK
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.
Not all Wiring API stuff is implemented. Basically things needed by rc-switch is done.