Add RTC(DS3231)

Is there anyone who has added the DS3231 to ArduPilot as a new RTC? I know it uses the I2C communication protocol. Has anyone done the related configuration?

No need to change the ardupilot code. You can add a driver in LUA.

Uploading: image.png…
Hello I want to ask you, I want to add an rtc module to replace its internal clock, while including some other functions of the driver, can this be done using LUA, so that no new driver code can be added. Because when I add driver code, I always feel that the purpose is not achieved