config_files/hello-world-leds.js
// formats the input to be received by the blinkM led
formats the input to be received by the blinkM led
formats the input to be received by the blinkM led
function blinkMInput(c) {
	if(c === 1) return [255, 255, 255];
	if(c === 0) return [0, 0, 0];
	return [c[0] ,c[1],c[2]];
}
function blinkMInput ( c ) { if ( c === 1 ) return [ 255 , 255 , 255 ] ; if ( c === 0 ) return [ 0 , 0 , 0 ] ; return [ c [ 0 ] , c [ 1 ] , c [ 2 ] ] ; }
formats the input to be received by the blinkM led
formats the input to be received by the blinkM led