config_files/hello-world-leds.js
// converts a number to a hex
converts a number to a hex
converts a number to a hex
function toHex(c) {
    var hex = c.toString(16);
    hex = hex.length == 1 ? "0" + hex : hex;
    return "0x" + hex;
}
function toHex ( c ) { var hex = c . toString ( 16 ) ; hex = hex . length == 1 ? "0" + hex : hex ; return "0x" + hex ; }
converts a number to a hex
converts a number to a hex