How to talk with RTC hardware by Python?
It seems that there is no answer for this question. Fortunately, I have solved my problem so far. I will share the answer here.
1. Error
- For 1.1 IOError: [Errno 16]: The RTC (I2C slave) is connected to I2C bus (Master side). But there is a driver is controlling the RTC, so the Python can not talk with that RTC. That's why its error is "Device or resource busy".
Solve 1.1: Remove driver controlling RTC
- For 1.2 IOError: [Errno 5] : No I2C slave is connected to I2C bus (Master side).
2. DS1307 library can be used for ISL12057.
3. Connect RTC interrupt port to a GPIO port on DART board and use polling mechanism of Python to detect interrupt via GPIO port.