Go Down

Topic: Corrected I2C Scanner Sketch- attached. (Read 417 times) previous topic - next topic


The version of the sketch in error has this line of code:
Code: [Select]
The sketch with that line will report the incorrect device address because the beginTransmission() method requires a right-shifted address value and the sketch sends it and reports the unshifted address. The correct code line is:
Code: [Select]
The attached sketch is the corrected one.

Go Up