Go Down

Topic: Corrected I2C Scanner Sketch- attached. (Read 621 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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131