rpi-led-control.js
function setChar(addr, digit, char, dp){
		if(addr<0 || addr>=maxDevices)
			throw 'address out of range';
	    if(digit<0 || digit>7) 
			throw 'invalid digit number'; 
			
			
		var offset = addr*8;
		var v = charTable[char] || charTable[char.toLowerCase()];//.toString(16)]; 
		

		if(dp) v|=0x80; // set the decimal point bit if necessary

		status[offset+digit] = v; 
		spiTransfer(addr, digit+1, v);
		
	
	}
function setChar(addr, digit, char, dp){
		if(addr<0 || addr>=maxDevices)
			throw 'address out of range';
	    if(digit<0 || digit>7) 
			throw 'invalid digit number'; 
			
			
		var offset = addr*8;
		var v = charTable[char] || charTable[char.toLowerCase()];//.toString(16)]; 
		

		if(dp) v|=0x80; // set the decimal point bit if necessary

		status[offset+digit] = v; 
		spiTransfer(addr, digit+1, v);
		
	
	}
/*