MajicDesigns / MD_DS3231

DS3231 Real Time Clock Library
GNU Lesser General Public License v2.1
30 stars 11 forks source link

Not Really an Issue : PIN assignments #7

Closed jagganath69 closed 6 years ago

jagganath69 commented 6 years ago

Apologies, as I am just beginning to delve into SBC. I am more into the software side.

I just can't find any reference to pin assignments except the I2C. Does that mean the lib is HARDWIRED to the default pins of the I2C of respective boards? We can't assign any different pins for SDA and SCL instead?

Thank you!

MajicDesigns commented 6 years ago

I2C is a bus based communications method that works best with hardware support. Each device connected to the bus has a unique address and communications is established with the device based on this address.

On most Arduino MCU platforms, there is one set of SDA/SCL pins by default and the Wire library manages the I2C interface. The actual pins are no known and not relevant to the application. The most recent update of this library allows the SDA/SCL pins to be specified for the ESP8266 platform because it has more than one hardware I2C interface available.