I2C unblocking

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
HyperUniverse
Posts: 282
Joined: 17 Jun 2009 10:42

I2C unblocking

#1 Post by HyperUniverse » 12 Feb 2022 21:15

how do I use I2C without blocking the program in case an i2c device is missing or not repsonding?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: I2C unblocking

#2 Post by filip » 18 Feb 2022 12:19

Hi,

For this please use I2Cx_SetTimeoutCallback function, see I2C Library section in Help file for more information.

Regards,
Filip.

HyperUniverse
Posts: 282
Joined: 17 Jun 2009 10:42

Re: I2C unblocking

#3 Post by HyperUniverse » 01 Mar 2022 10:33

Yeah, I've got it, thanks

Post Reply

Return to “mikroC PRO for PIC General”