Add hardware nodes for Beaglebone Black: analogue in; discrete in/out; pulse in/out#37
Merged
knolleary merged 3 commits intonode-red:masterfrom Mar 10, 2014
Merged
Conversation
Member
|
Only outstanding item is to add bbb- prefix to the node names. We can fix the ui/presentation side of things separately - but the node type names have to be right from day one. |
Member
|
Nick I think the icon plus fact you need bone script installed should be enough of a clue without needing bbb- |
Member
|
..then again... maybe not ... :-) |
Member
|
It isn't an issue of being clear in the palette - it's an issue of being too generic and potentially causing clashes with future node types. |
knolleary
added a commit
that referenced
this pull request
Mar 10, 2014
Add hardware nodes for Beaglebone Black: analogue in; discrete in/out; pulse in/out
Member
|
@maxwellhadley sorry for the delay - github doesn't send notifications when commits are added, only when comments are made. Looking good. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A set of 5 hardware I/O nodes for the Beaglebone Black, based on Bonescript.
The BBB should be running with the as-supplied device tree compiled into the kernel. This
code is not currently aware of dynamically loaded device tree overlays, and in particular
the list of pins presented for each node is based on the default. You might be lucky though...
You need to be root to use bonescript, an error message will be logged if you are not.
This code has been tested with the latest node-RED from github as of 2014-02-27T20:00
using bonescript 0.2.4 running under node v0.8.22 on Angström
Linux 3.8.13. The BBB was reflashed with the 2013.09.04 image, updated using opkg upgrade.
Note that you do not need to add bonescript to node-RED's global context (in settings.js) to
use these nodes, but no harm should arise if you do.
Currently there are no checks against assigning the same pin to multiple nodes. Don't do it!