Set up I2C communication between an Arduino Uno (Master) and three I2C slave devices:
- RTC module (e.g., DS1307) for real-time date and time.
- BMP180 sensor for environmental data (temperature, pressure, altitude).
- OLED display (SSD1306) to display data.
Tasks
- Read the date and time from the RTC module.
- Read pressure, temperature, and altitude from the BMP180 sensor.
- Display the date, time, pressure, temperature, and altitude on the OLED screen.
- Update all the readings for each second.
Example
