Erriez / ErriezDS1302

Erriez 3-wire DS1302 Real Time Clock library for Arduino

Home Page:https://github.com/Erriez/ErriezArduinoLibraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PIN CE of ESP32

saadsdz opened this issue · comments

There issue when we use in the same time an SPI on ESP32 (in our case to communicate with LORA module) and DS1302. In the library CE pin of DS1302 is connected the IO5 of ESP32. But this pin is used for SPI communication (NSS pin). Is there possibility the change CE pin (use other GPIO )?

Hi @saadsdz, Thanks for using my library. Yes, you can use any GPIO pin, because this library uses low-level bit-banging.
See

#define DS1302_CLK_LOW() { digitalWrite(_clkPin, LOW); } //!< CLK pin low

Does this answer your question?