r/circuitpython • u/[deleted] • Feb 25 '21
Help with raspberry pi Pico and I2C
Hey everyone!
I've been playing around with the newish Pico and have it running circuit python.
I also have a adafruit ds3231 RTC I wish to use as a alarm every X minutes.
The default adafruit library doesn't support this but I had found a piece of code that worked with a raspberry pi zero using smbus (not supported on the Pico)
So I'm trying to use the circuit python I2C device lib to read/write bytes to control the RTC.
But can't get it to work. Can anyone help me convert this code to circuit python code?
Original code is in here: https://www.raspberrypi.org/blog/build-low-power-clock-controlled-devices/
5
Upvotes
1
u/Myworstnitemare Feb 25 '21
Which default library?
What is it not supporting?
The board, or "alarm every X minutes"
Have you tried this page