Closed jremmet closed 1 year ago
We may even move this down into he elif clause https://github.com/vpaeder/pymcp2221/blob/03a6d647190c2c3fd7aa1ddb42f341e415c5773e/mcp2221/__init__.py#L370
That's fine this way since the expensive operations are needed anyway either way. Thanks for spotting this one.
By now we lost a GP Designation if we write a new one: .gpio2_write_function(GPIO2Function.ADC2) gpio2_read_function() <GPIO2Function.ADC2: 2> gpio3_read_function() <GPIO3Function.GPIO: 0> gpio3_write_function(GPIO3Function.ADC3) gpio2_read_function() <GPIO2Function.GPIO: 0>