I2C communication compability

Store Forums Video Experimenter Bugs/Problems I2C communication compability

This topic contains 1 reply, has 2 voices, and was last updated by  Michael 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8793

    Nikolas
    Participant

    Hi there, I was trying to use this shield and library while using i2c communication with other Arduino. It seems that somehow they are conflicting (no video output and i2c not working). I’m guessing it’s a timer issue between the two library? Is there anything I can change to fix this?

    #8795

    Michael
    Keymaster

    You are right, it is a timer issue. Generating video requires precision and takes up a lot of the microcontroller’s time. For example, to do serial communication, the pollserial library performs serial communication with polling instead of interrupts. The use of the pollserial library occurs during the horizontal blanking interval.
    You may try pollserial for communication with another Arduino. The other Arduino can just use regular normal Serial library.
    Or you can disable the video generation temporarily while you do i2c, then re-enable it, if your communication is infrequent. Just some ideas.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.