fbiego / ESP32Time

An Arduino library for setting and retrieving internal RTC time on ESP32 boards
MIT License
222 stars 37 forks source link

External 32KHz RTC clock #9

Open Nagymadar opened 3 years ago

Nagymadar commented 3 years ago

Any idea how to set it up in platformio with external 32Khz RTC clock? Just enabling the external clock (below) gives ~(150K / 32K) slower time intervals.

void start_external_32khz_clock(){ rtc_clk_32k_bootstrap(512); rtc_clk_32k_enable(true); rtc_clk_slow_freq_set(RTC_SLOW_FREQ_32K_XTAL); }

kainzjo1 commented 2 years ago

This is in my opinion a very good point. If you read RTC you expect a exact clock. I did not find a solution to get a exact clock out of the esp. - I find the implementation of the library very good and I know this ist a espressive problem. Nevertheless a solution would be extremely helpful.

fbiego commented 2 years ago

3