arduino-i2c-scanner icon indicating copy to clipboard operation
arduino-i2c-scanner copied to clipboard

use the Wire library instead of twi; the Zero doesn't have twi definitions

Open dhiltonp opened this issue 9 years ago • 0 comments

The Arduino Zero doesn't have twi.h defined.

I initially wrote an #ifdef wrapper for the Zero case, but I realized that the return codes for the endTransmission and twi_writeTo are identical (even in the case of the Zero, which has an entirely separate endTransmission implementation).

dhiltonp avatar Feb 05 '16 03:02 dhiltonp