Corrected MUX selection error
Request GPIO pins before using
Some comments added regarding attributes