Main Content

Arduino Resource Conflicts

When using Arduino® boards in MATLAB®, you might get an error saying there is a hardware resource conflict. For example, if you use I2C pins A4 and A5 on an Arduino Uno as digital inputs, then using I2C classes throws an error. To resolve the conflict, call configurePin to explicitly change the pin mode.

Note

If the modes are compatible, MATLAB converts the mode automatically for you without throwing an error.