Thursday, December 11, 2008

A Respectable Firmware and Router

After delving more into the newer firmware and router Jonathan and Devon were using I felt really bad about using the processing router and older firmware. So I went through and converted the new firmware over to be compatible with the shield, and also have some instructions on using the python router.

For the Octinct use this software:
To get the python router running on windows, you need to do the following:

  1. Install Python 2.6 (I don't believe all the libraries are 3.0 compatible)
  2. Install SimpleOSC (I used v0.2.5)
  3. Install pyserial (I used 2.4)
  4. Install pywin32 (There is a version for python 2.6)
  5. Download Devon Jones Python router (see above)
  6. Edit SerialTinct.py and designate the correct comport windows users can use a value like "com17"
  7. From the command line run "python SerialTinct.py"
  8. Pat yourself on the back
To install SimpleOSC read the readme.txt that is included with it, the rest of the binaries should install the libraries for you.

If you look in the firmware you will see a serial string case for setting RGB values, which then are used by led, row, column commands of the monome protocol. You can use this to start writing RGB apps without needing to modify the firmware.

osc.sendMsg(prefix + "/rgb",[255,0,0],"127.0.0.1",8080)

The above will set the working color for R,G,B respectively. The value specified is multiplied by 16 to achieve the brightness value the 5940 is fed.

2 comments:

Alex said...

hello,
please,
do you have any complete documentation of the serial protocol?
any software for OSX?
thanks,
/alex

spark said...

まず面接よりも履歴書 書き方で第一印象が決まる。