Since those are the only two pins Wire can use, there is no need to specify them, the sketch just calls Wire.begin() to set everything up. ![]() In addition to being analog pins, they are also the pins configured internally for I2C/TWI serial, which is interfaced with using the Wire library on arduino. Your confusion is over the multiple functions of analog pins A4 and A5. ![]() following line sets the RTC to the date & time this sketch was compiled Version #1- // Date and time functions using a DS1307 RTC connected via I2C and Wire lib If i wanted to move the clock to say pins. So how can i set / change the pins for the clock to use. Version #2 is a simple loop with a device on pin A0 Version #1 is a timeclock which is simply declared with no pin numbers. ![]() I am having an issue where i am unsure how my device knows what pins its using.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |