The standard I2C library for the Arduino is the Wire library. While this library is sufficient most of the time, there are situations when it cannot be used:
- the I2C pins A4/A5 (or SDA/SCL) are in use already for other purposes
- same I2C addresses devices are used
So we write the SoftwareI2C library to use digit port and analog port to enable multiple same I2C addresses devices work on Arduino.
https://wiki.seeedstudio.com/Arduino_Software_I2C_user_guide/
https://github.com/Seeed-Studio/Arduino_Software_I2C
https://www.arduino.cc/reference/en/libraries/softwire/
https://github.com/stevemarple/SoftWire
https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/
http://xantorohara.github.io/XantoI2C/
https://www.arduinolibraries.info/libraries/software-wire
Không có nhận xét nào:
Đăng nhận xét