Skip to content

Add hardware nodes for Beaglebone Black: analogue in; discrete in/out; pulse in/out#37

Merged
knolleary merged 3 commits intonode-red:masterfrom
maxwellhadley:master
Mar 10, 2014
Merged

Add hardware nodes for Beaglebone Black: analogue in; discrete in/out; pulse in/out#37
knolleary merged 3 commits intonode-red:masterfrom
maxwellhadley:master

Conversation

@maxwellhadley
Copy link
Copy Markdown
Contributor

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!

@knolleary
Copy link
Copy Markdown
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.

@dceejay
Copy link
Copy Markdown
Member

dceejay commented Mar 5, 2014

Nick I think the icon plus fact you need bone script installed should be enough of a clue without needing bbb-

@dceejay
Copy link
Copy Markdown
Member

dceejay commented Mar 5, 2014

..then again... maybe not ... :-)

@knolleary
Copy link
Copy Markdown
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
@knolleary knolleary merged commit ec3c36d into node-red:master Mar 10, 2014
@knolleary
Copy link
Copy Markdown
Member

@maxwellhadley sorry for the delay - github doesn't send notifications when commits are added, only when comments are made. Looking good. Thanks!

Sign up for free to 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.

3 participants