How to operate i2c port for RTC(real time clock) when touch is being used?

edited October 2024 in Elecrow HMI Display

I can read & set RTC value in the setup. But I want to set RTC for an operation in the loop section which i am not able to do and i think it is because of the touch connected with the i2c which is not allowing to use i2c bus. I have already tried using Wire.beginTransmission, semaphoreMutex, etc but not able to set the rtc.

I am using Elecrow 7inch touch panel display.

Comments

  • I tried in the loop to read RTC but I2C port is continuously being used by the touch panel so it gives garbage value of RTC. Touch address and RTC address are different I have check using I2C scanner but the touch doesn't give time to read RTC properly. I am using 7inch Elecrow display the have given 2 ports of same I2C bus which actually of no use.


  • Hello Dhyey, re-initialize the IIC bus each time you use RTC. And change the pin in the picture to the corresponding pin of the IIC. After using RTC, it is best to re-initialize touch.

  • "Looking for the best farming simulation game? Download Stardew Valley APK iOS and enjoy endless fun and creativity right on your Android!"

  • "Tired of ads interrupting your music? Download the Blackhole Premium APK from our site for uninterrupted, high-quality streaming. You can access a huge library of songs for free! Head to our site and grab the latest Blackhole APK download now."

  • "Tired of ads interrupting your music? Download the Blackhole Premium APK from our site for uninterrupted, high-quality streaming. You can access a huge library of songs for free! Head to our site and grab the latest Blackhole APK download now."

  • "Want to unlock all the features and items in Toca Boca without spending a dime? My guide reveals the best tricks and methods how to get free stuff on toca boca 2025 so you can enjoy endless creativity and fun. Visit here to find out how!"

  • "If you’re into video editing, you need to try inshot apk download. It’s an incredible app that provides premium features for free, without any restrictions. Get the latest version on my website."

Sign In or Register to comment.