https://learn.adafruit.com/assets/3813
I understand that analog 4
and 5
are SDA/SLC
, isn't the picture also showing 5v
and GND
being plugged into two analog pins? Does that work?
I have it wired up to the actual 5v
and GND
, but it would be convieniet to be able to stack the RTC like they show in the picture
-
2You can use ADC pins as general DIO too. In this case 2 PORTA pins set as output, one with HIGH and other LOW outputs to be used as source and sink. Sure pin currents must be within the allowed specs. DS1307 shall consume very low current (designed to be operating years by battery).Flanker– Flanker2016年07月27日 07:07:30 +00:00Commented Jul 27, 2016 at 7:07
-
@Flanker You just gave an answer. You shouldn't put that in a comment.Gerben– Gerben2016年07月27日 09:17:50 +00:00Commented Jul 27, 2016 at 9:17
1 Answer 1
It's written in the tutorial
If you set analog pin 3 (digital 17) to an OUTPUT and HIGH and analog pin 2 (digital 16) to an OUTPUT and LOW you can power the RTC directly from the pins!