jpill
November 5, 2016, 10:03pm
1
Hi.
I have an arduino mega with a tft display with an sdcard module, i am using it to save data from temperature and humidity sensor.
So i have to save the data with the actual date, for that i have a ZS-042 module wich uses SDA and SCL pins for arduino.
That pins are used by the SDCard too, so, is possible that SDCard and ZS-042 shares the SDA and SCL pins?
Thanks.
knut_ny
November 5, 2016, 10:07pm
2
The bus is built for sharing. Both SPI and I2C can have several units connected.
..are u sure they use the same bus? often tft use SPI (pins 50..53) and the RTC uses I2C(near Aref)
jpill
November 8, 2016, 5:44pm
3
Sorry you're right.
what is connected in that pins is a barometer BMP180.
I deffined the variables like this:
BMP180 barometer;
// control Timer
RTC_DS1307 rtc;
Do i need to change something?
Thanks
knut_ny
November 13, 2016, 9:59pm
4
Install the libraries from 'library manager' (search for "BMP" and "1307")
Then take a look in the examples