chacal / stm32sleep

Helper library for using Stop & Standby modes with STM32duino
MIT License
21 stars 11 forks source link

DS3231 #4

Open Phisatho opened 6 years ago

Phisatho commented 6 years ago

I am not able to use DS3231 RTC along with sleep. Is there a way to avoid the sleep mode messing with DS3231 library?

Phisatho commented 6 years ago

To be precise, the RTClock.h is causing the trouble.

zoomx commented 6 years ago

I believe that this library uses the RTC that is inside the STM32F103, not an extern RTC. The board must have the 32768kHz crystal like a BluePill board.

Phisatho commented 6 years ago

I am using Bluepill, but I wanted an accurate RTC like DS3231. I wonder if there is a way to use DS3231 for the same purpose that the internal RTC serves for this library.

zoomx commented 6 years ago

Maybe this library https://github.com/flank1er/DS3231SQW but then you need to sleep and wake up on a pin interrupt