PI display and ds1307 rtc
Posted: Sat Nov 05, 2016 6:11 pm
I can get them to work seperately so they both work but not together. Display fine but rtc reports invalid argument to sudo hwclock - r
any thoughts ?
any thoughts ?
A small, affordable computer with free resources to help people learn, make things, and have fun
https://www.raspberrypi.org/forums/
https://www.raspberrypi.org/forums/viewtopic.php?f=108&t=164894
Code: Select all
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Code: Select all
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- --
40: -- -- -- -- -- 45 -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
yes I have dev/rtc and dev/rtc0DougieLawson wrote:Your RTC looks like it is working, "UU" means it has been captured by a kernel module.
Do you have a /dev/rtc or /dev/rtc0? What's in /sys/dev/char/254:0?
Try
cat /sys/dev/char/254\:0/date
cat /sys/dev/char/254\:0/time
Thanks Dougie, but what about the white and grey i2c wires here ?...DougieLawson wrote:The display on an A+, B+, 2B or 3B does NOT need anything other than the ribbon cable and power.
Pull them off and store them in your "bits and bobs" spares drawer.gordon77 wrote:Thanks Dougie, but what about the white and grey i2c wires here ?...DougieLawson wrote:The display on an A+, B+, 2B or 3B does NOT need anything other than the ribbon cable and power.
https://thepihut.com/blogs/raspberry-pi ... mbly-guide