Newby Tyro wrote: ↑Thu May 14, 2020 9:06 am
Thanks very much for this. If Linux handles a DS1307 with a different bus, which GPIO pins does it use for SDA and SCL?
It is the touchscreen that is on a different I2C bus. You should still attach your DS1307 to the GPIO header on GPIO2 + GPIO3.
Newby Tyro wrote: ↑Thu May 14, 2020 9:06 am
I have used pins 2 and 3 for my DS1307, which I need to read every 2 seconds to provide a time stamp for measurements made with my Python script, not to show time on the screen.
Is there a reason why you don't trust the Linux clock and need to read directly from the RTC? It would be much simpler to get the Linux kernel to read the RTC at startup then use the regular time functions in your script. I would expect accuracy to be slightly better as well since you're not doing a slow I2C transaction for each timestamp.
Newby Tyro wrote: ↑Thu May 14, 2020 9:06 am
ALL the guides that I have been able to find tell you to blindly connect the touchscreen SDA and SCL line to GPIO 2 and 3
All of those guides are wrong. See
https://www.raspberrypi.org/documentati ... e/display/ where it says "Legacy support for Raspberry Pi 1 Model A/B". The additional two wires shouldn't be connected on anything except the original Pi 1A and 1B. If you do use those additional wires on a newer Pi then you're actually connecting two different I2C controllers together which can cause problems.
Newby Tyro wrote: ↑Thu May 14, 2020 9:06 am
and they are surely more likely to be oriented towards Pi 3 or 4 since (I believe) the touch part of the screen is relatively recent ?
The touchscreen has been part of the official display since it was released.