-->
Page 3 of 4

Re: [NodeMnu] Requested new features and API

PostPosted: Mon Nov 24, 2014 4:53 am
by gerardwr
Please add a function to get input from the user via the serial port, similar to io.read.

Below an example for io.read:
Code: Select allio.write('Hello, what is your name? ')
local name = io.read()
io.write('Nice to meet you, ', name, '!\n')

Re: [NodeMnu] Requested new features and API

PostPosted: Mon Nov 24, 2014 5:02 am
by gerardwr
The API docs states:
Code: Select allnode.key()
Description
define button function, button is connected to GPIO16.


Suggestion to extend the function with the GPIO# as variable, like:
Code: Select allnode.key(8) -- key found at GPIO0


Ditto for node.led
Code: Select allnode.led(8) -- LED found at GPIO0

Re: [NodeMnu] Requested new features and API

PostPosted: Mon Nov 24, 2014 11:48 am
by JoHannes
alonewolfx2 wrote:Can you add driver for ds18b20 temprature sensor. driver is here.

https://github.com/pilotniq/esp8266-frankenstein/commit/ff4d8c4124f9ef5a383bb29c69a80f5ab5c5e48d



Yes, ds1820 and dht11/22 would be really cool!

Re: [NodeMnu] Requested new features and API

PostPosted: Mon Nov 24, 2014 12:52 pm
by ThomasW
JoHannes wrote:Yes, ds1820 and dht11/22 would be really cool!

+1 :)
Thomas