I really enjoy working in Node.js and my typical IoT stack uses Node and Johnny-five for uniform APIs across devices.
To support that on the Omega2+ I just received, I've started work on an adapter for Johnny-five, and thought people would be interested in helping/using it.
Presently I'm using fast-gpio as an interface to the Omega2 GPIO, and have implemented digitalRead, digitalWrite, and analogWrite. There is code in the adapter for i2c, but I haven't done any work on it to adapt it to the Omega2.
The lib is presently available on NPM (omega2-io), and on github as a beta. No guarantees whether it will work or not at this point.
In the future, it might be good to build gyp-bindings directly to the C libraries rather than using the default utils, but spawning fast-gpio from node will likely work as a sufficient stopgap for many applications.
So, your Omega(2(+)) doesn't work? What to do? This little piece, shielded by a metal plate may seem like a mystery, an impenetrable black box. Don't let that overwhelm you. The Omega is a little verbose devil... if you know how to listen. And do listen to it! You'll be rewarded with countless hours of spared debugging time.
But first, something not (yet) mentioned in the docs, ground yourself and perform a thorough visual inspection of all hardware pieces that you receive. Look for non-aesthetic solder blob on the board. I personally found some. Pin solder weren't touching but they were too close for comfort, IMO. To fix that, I used a soldering iron with the pin over the heated tip of the iron to let gravity fix the solder blob. Statistics from my purchase, 33% of the Omega2+ were affected. I wouldn't say 'sloppy', but it's definitely disappointing. As, is there anything else wrong with those Omega2+?
So now, do you feel your Omega reaching out to you? Great! You are in the right state of mind. The secret is: get connected to the Omega's first serial port (labelled RX0 and TX0). By default, the port speed is 115200 baud. I use this command under FreeBSD:
cu -l cuaU0 -s 115200
Linux, Mac and Windows have their equivalent too.
You bought the Omega without a dock? Well, you know what you are doing, and you are good at it too. Read the docs for the relevant pins, and get connected. You purchased an Expansion Dock? Great minds think alike. It's the easiest way to communicate. You just need a mini-usb cable from the dock to your computer, and those cables are just laying around you doing nothing anyway. You got the Mini Dock instead? No problem! Its mini usb provides the same communication functionality. I can't blame you to like things small. I do too!
If you have the other docks, tough luck, but do not despair. I'm promoting you to EXPERT LEVEL. The first Omega serial port is still available, but you'll need to solder three wires on it (RX0, TX0 and GND). Refer to the docs for the right pin numbers. Remember that it's a 3.3V level. You can build yourself a serial-to-usb circuit of your own, a RS-232 driver, or whatever you like, but do use the first Omega serial port. If not, it's just like driving blind. How long can you last?