Add pullup option to Arduino digital input

to Close #455
This commit is contained in:
Dave Conway-Jones
2018-06-27 21:36:06 +01:00
parent 76a221919a
commit 88f7f52f99
5 changed files with 15 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ details and examples of how to use this node.
Connects to local Arduino and monitors the selected pin for changes.
You can select either **Digital**, **Analogue**, or **String** input type.
You can select either **Digital**, **Pullup**, **Analogue**, or **String** input type.
Outputs the value read as `msg.payload` and the pin number as `msg.topic`.
It only outputs on a change of value - fine for digital inputs, but you can get a lot of data from analogue pins which you must then handle. For example you could use a `delay` node set to rate limit and drop intermediate values, or an `rbe` node to only report when it changes by a certain amount.