;
        })
        .then(data => {
            console.log('Color set successfully:', data);
        })
    }

    function hexToRgb(hex) {
        // Remove # if present
        hex = hex.replace(/^#/, '');

        // Parse hex value to RGB components
        var bigint = parseInt(hex, 16);
        var r = (bigint >> 16) & 255;
        var g = (bigint >> 8) & 255;
        var b = bigint & 255;

        // Return RGB object
        return { r: r, g: g, b: b };
    }
    
    function updateFirmware() {
 