Main Site Documentation

I2C protocol


#1

Hello,

I must implement the I2C protocol on my card EMX.
In Java there I2CPort class but I do not like class in C #.
could you help me?

Thank you


#2

I assume you know this ?

http://www.microframeworkprojects.com/index.php?title=Serial_Interfaces#I2C


#3

Yes I have already seen this, but I use a class “Singleton” which inherits I2CPort in java and in my conversion in C # I miss method as setClockDelay

And I can not find any equivalent.

Thank you


#4

By setClockDelay you mean changing the I2C clock rate or adding a delay between transactions ?


#5

Just because java does it one way doesn’t mean you have to keep doing it that way :slight_smile:

Whats your problem? What do you think you need to “setclockdelay” for? The example code from the wiki should work straight off the bat, why even muck around without testing that?


#6

Thank you, I think I have solved my problem.