diff --git a/README.md b/README.md index 9988f7a..d169cca 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # aREST_UI [![Build Status](https://travis-ci.org/marcoschwartz/aREST_UI.svg)](https://travis-ci.org/marcoschwartz/aREST_UI) -Version 1.1.0 +Version 1.1.1 ## Overview diff --git a/aREST_UI.h b/aREST_UI.h index 3b165a6..ad69fb3 100644 --- a/aREST_UI.h +++ b/aREST_UI.h @@ -3,9 +3,11 @@ See the README file for more details. Written in 2015 by Marco Schwartz under a GPL license. - Version 1.0.0 + Version 1.1.1 + Changelog: + Version 1.1.1: Fixed bug with NodeMCU boards Version 1.1.0: Added support for functions Version 1.0.1: Initial release with buttons only */ @@ -38,7 +40,11 @@ void title(String the_title) { void button(int pin){ // Set pin as output - pinMode(pin,OUTPUT); + #if defined(ARDUINO_ESP8266_NODEMCU) || defined(ARDUINO_ESP8266_WEMOS_D1MINI) + pinMode(esp_12_pin_map(pin), OUTPUT); + #else + pinMode(pin, OUTPUT); + #endif // Set in button array buttons[buttons_index] = pin; @@ -60,7 +66,11 @@ void callFunction(char * functionName, char * type){ void slider(int pin) { // Set pin as output - pinMode(pin,OUTPUT); + #if defined(ARDUINO_ESP8266_NODEMCU) || defined(ARDUINO_ESP8266_WEMOS_D1MINI) + pinMode(esp_12_pin_map(pin), OUTPUT); + #else + pinMode(pin, OUTPUT); + #endif // Set in button array sliders[sliders_index] = pin; diff --git a/library.json b/library.json index 66bf007..52c3366 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "aREST UI", - "version": "1.1.0", + "version": "1.1.1", "keywords": "UI, REST, wifi, ethernet, http, web, server, json, spi", "description": "A graphical user interface for Arduino based on the aREST API", "repository": diff --git a/library.properties b/library.properties index 20cc10f..c52d124 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=aREST UI -version=1.1.0 +version=1.1.1 author=Marco Schwartz maintainer=Marco Schwartz sentence=A graphical user interface for Arduino based on the aREST API.