Main Site Documentation

Cobra I2C Relay16


#1

Im getting the below error on my new cobra @ line.
I2C = new I2CDevice(new I2CDevice.Configuration(0x20, 100));

Exception System.InvalidOperationException - CLR_E_INVALID_OPERATION (1)

Any ideas?


#2

Could you post a little more code ? How was the object I2C declared ?


#3

The relay driver has been updated before. See this post:
http://www.tinyclr.com/forum/4/588/

Please post how this I2C object is declared in code.


#4

Im a dunce :-[ .Something in my code (who knows where) is reserving the pin. I have to track it down. The TFT doesnt use I2C, does it?


#5

All free pins on cobra are not used by the display. See this page


#6

It was me being silly. I already had defined a Relay16 device in another class.


#7

No problem, if you have any questions left, please let us know :wink: