Controlling a USB Device/Triklits with Max/MSP
I have bought some LED lights (Triklits) that have a USB controller with a well-defined protocol for controlling them but there is currently no Max/MSP object available.
When I connect the USB device to my Mac it is recognised as a 'CDC' USB device and I have found that using the 'serial' object I can make random things happen to the lights by sending characters down to them.
However, in order to control the lights properly I need to be able to send a 776bit *frame* of data to the lights and, ideally, at a speed of 40Khz.
Can anyone give me some advice in doing this? The protocol is defined here http://nw.com/nw/triklits/protocol.html. Can the serial object be used for this purpose? Or is there a better way of doing it?
Many thanks,
Sean