7 bits identify the device, and the eighth bit determines if it's being written to or read from. There are both 7- and 8-bit versions of I2C addresses. Because of this, send() and receive() have been replaced with read() and write(). On the Arduino Mega, SDA is digital pin 20 and SCL is 21.Īs of Arduino 1.0, the library inherits from the Stream functions, making it consistent with other read/write libraries. On most Arduino boards, SDA (data line) is on analog input pin 4, and SCL (clock line) is on analog input pin 5. ![]() ![]() This library allows you to communicate with I2C / TWI devices. Reference Language | Libraries | Comparison | Changes
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |