pimoroni-pico/common
Phil Howard 6a9697145b Reset unused I2C pins to default when an instance is initialised
This change is specifically intended to avoid a pitfall in MicroPython and will likely have no effect in C++.

When using the REPL in MicroPython it's possible to set up an I2C instance on two pins - ie: 20, 21 - and then subsequently realise these are the wrong pins for your board.

Before this change, these pins would be left hanging even if you created a new I2C instance with new pins - ie: 4, 5 - this would lead to communications failures where they really shouldn't happen. Confusing!
2021-05-21 15:01:11 +01:00
..
CMakeLists.txt Add common I2C class 2021-05-14 23:02:38 +01:00
pimoroni_common.hpp Switch drivers over to I2C class, tidy up common include 2021-05-17 11:46:12 +01:00
pimoroni_i2c.cpp Reset unused I2C pins to default when an instance is initialised 2021-05-21 15:01:11 +01:00
pimoroni_i2c.hpp Reset unused I2C pins to default when an instance is initialised 2021-05-21 15:01:11 +01:00