blinkstick.js
function setInfoBlock (device, location, data, callback) {
    var i,
    l = Math.min(data.length, 33),
    buffer = new Buffer(33);

    buffer[0] = 0;
    for (i = 0; i < l; i++) buffer[i + 1] = data.charCodeAt(i);
    for (i = l; i < 33; i++) buffer[i + 1] = 0;

    setFeatureReport(location, buffer, callback);
}
function setInfoBlock (device, location, data, callback) {
    var i,
    l = Math.min(data.length, 33),
    buffer = new Buffer(33);

    buffer[0] = 0;
    for (i = 0; i < l; i++) buffer[i + 1] = data.charCodeAt(i);
    for (i = l; i < 33; i++) buffer[i + 1] = 0;

    setFeatureReport(location, buffer, callback);
}
function setInfoBlock ( device , location , data , callback ) { var i , l = Math . min ( data . length , 33 ) , buffer = new Buffer ( 33 ) ; buffer [ 0 ] = 0 ; for ( i = 0 ; i < l ; i ++ ) buffer [ i + 1 ] = data . charCodeAt ( i ) ; for ( i = l ; i < 33 ; i ++ ) buffer [ i + 1 ] = 0 ; setFeatureReport ( location , buffer , callback ) ; }
Sets an infoblock on a device.

@private
@static
@method setInfoBlock
@param {BlinkStick} device Device on which to set the value.
@param {Number} location Address to seek the data.
@param {String} data The value to push to the device. Should be <= 32 chars.
@param {Function} callback Callback to which to pass the value.
Sets an infoblock on a device .