Skip to content

Add RC livolo switch - #58

Open
joosoo wants to merge 20 commits into
ecto:masterfrom
ni-c:master
Open

Add RC livolo switch#58
joosoo wants to merge 20 commits into
ecto:masterfrom
ni-c:master

Conversation

ni-cand others added 20 commits February 19, 2013 21:50
decimal RC code support
Fixed problem with single digit pins
ni-c/heimcontrol.js#2
Conflicts:
examples/rc.js
index.js
lib/board.js
lib/rc.js
package.json
src/du.ino
Instead of having both `src/du.ino` (old, invalid path) and
`src/duino/duino.ino` (new), make the former a symlink to the latter.
(The Arduino IDE requires this folder format.)
Instead of trying to establish the serial connection in the Board constructor,
delegate this to a separate `setup()`. (**API change**!)
This allows the user to add listeners to the Board’s `error` event, which
signifies that the connection could not be established. (This was already
intended, but wasn't possible, as far as I can tell.)
Also displays a more intuitive error message.
`setup()` returns `this`, which allows for an easier transition from old code:
```
var board = new arduino.Board(); // old
var board = new arduino.Board().setup(); // new
```
This was preventing digitalWrite and analogWrite from working
@joosoojoosoo changed the title Added RC livolo switchAdd RC livolo switchJan 13, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@joosoo@ni-c@tjanson@liamfraser