rpi-led-control.js
function shutdown(addr, b) {
	    if(addr<0 || addr>=maxDevices)
			throw 'address out of range';
			
	    if(b)
			spiTransfer(addr, OP_SHUTDOWN,0);
	    else
			spiTransfer(addr, OP_SHUTDOWN,1);
	}
function shutdown(addr, b) {
	    if(addr<0 || addr>=maxDevices)
			throw 'address out of range';
			
	    if(b)
			spiTransfer(addr, OP_SHUTDOWN,0);
	    else
			spiTransfer(addr, OP_SHUTDOWN,1);
	}
function shutdown ( addr , b ) { if ( addr < 0 || addr >= maxDevices ) throw 'address out of range' ; if ( b ) spiTransfer ( addr , OP_SHUTDOWN , 0 ) ; else spiTransfer ( addr , OP_SHUTDOWN , 1 ) ; }
shutdown puts it into power saving sleep mode. call with false to wake it up.
shutdown puts it into power saving sleep mode . call with false to wake it up .