Hi @yamsboat. Which version of Arduino IDE are you using (e.g., "2.0.1")? The version is shown on the window title bar and also in the Help > About (or Arduino IDE > About Arduino IDE for macOS users) dialog.
I ask for this information because I want to give you the appropriate instructions for the IDE version you are using.
OK, I'll provide instructions you can follow to correctly install the library and sketch on your computer so that all the necessary files will be available.
Click the "<> Code ▾" button you see on that page.
Select Download ZIP from the menu.
A download of the ZIP file of the library will start.
Wait for the download to finish.
Select File > Preferences from the Arduino IDE menus.
The "Preferences" dialog will open.
Take note of the path shown in the "Sketchbook location" field of the "Preferences" dialog.
Click the "CANCEL" button.
Unzip the downloaded file to any convenient location on your computer.
Copy all the folders from the lib subfolder of the folder you unzipped. To the libraries subfolder of the path from the "Sketchbook location" preference.
The resulting folder structure should look like this:
(where <sketchbook location> is the folder at the path of the "Sketchbook location" preference)
Select File > Open... from the Arduino IDE menus.
The "Open" dialog will open.
From inside the folder you unzipped at step (8) of these instructions, select the file at examples\Sensor\PCF8563_SimpleTime\PCF8563_SimpleTime.ino
Click the "Open" button.
The "PCF8563_SimpleTime" sketch will open in a new Arduino IDE window.
Change this line of the sketch:
#include "SensorPCF8563.tpp"
to this:
#include "SensorPCF8563.hpp"
ⓘ The purpose of this change is to fix a bug made by the "LilyGO" developers.
Select the "utilities.h" tab in the editor panel of the Arduino IDE window.
Change this line:
// #define LILYGO_TBeamS3_SUPREME_V3_0
to this:
#define LILYGO_TBeamS3_SUPREME_V3_0
Select File > Preferences from the Arduino IDE menus.
The "Preferences" dialog will open.
Select Default from the "Compiler warnings" menu in the "Preferences" dialog. ⓘ This is required because the sloppy low quality code written by the "LilyGO" developers would produce a compilation error at any higher warning level.
Click the "OK" button.
Now try compiling that sketch that opened. This time it should compile successfully without any errors.
Please let me know if you have any questions or problems while following those instructions.
It is essential that you follow this step exactly:
You must open the sketch from the folder you unzipped from the download. The sketch consists of multiple files so it won't work if you just grab the code from the page on GitHub.