Ds1302.h — No Such File Or Directory

Ds1302.h — No Such File Or Directory

lib_deps = msparks/DS1302 @ ^1.0.0 Then run pio run — PlatformIO will fetch the library automatically. Create a new, empty sketch and type only this:

#include <DS1302.h> void setup() {} void loop() {} ds1302.h no such file or directory

If this doesn't compile, uninstall the library completely and reinstall it from the menu. A Quick Note on Hardware Just a heads-up: fixing the library error gets you past compilation, but the DS1302 is an older 5V chip. If you're using a 3.3V board (ESP32, Raspberry Pi Pico), you'll need level shifters on the data pins. But that's a topic for another blog post! Summary | Error | Most Likely Fix | | :--- | :--- | | ds1302.h: No such file | Install library via Library Manager | | DS1302.h: No such file (after installing) | Check case sensitivity in #include | | Still failing | Manual ZIP install or restart IDE | lib_deps = msparks/DS1302 @ ^1

If this compiles, the library is installed correctly. The problem is somewhere else in your original code (like a missing file or wrong path). If you're using a 3

Happy coding, and may your RTC always keep the correct time!