Skip to content

Commit

Permalink
fix bug with NodeMCU boards
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoschwartz committed Sep 20, 2016
1 parent 5a513a6 commit 54c5a94
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
16 changes: 13 additions & 3 deletions aREST_UI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -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":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=aREST UI
version=1.1.0
version=1.1.1
author=Marco Schwartz
maintainer=Marco Schwartz <[email protected]>
sentence=A graphical user interface for Arduino based on the aREST API.
Expand Down

0 comments on commit 54c5a94

Please sign in to comment.