You are not logged in.
Pages: 1
Topic closed
Hi guys,
I used i2c_bus_handle = Open(67); for opening I2C bus but compiler need more arguments for this function.
I tried to lookup example but examples have the same declaration.
Can you help me with declaration Open function for I2C device in version 2.50.1.7567?
Thanks
Offline
Hi radovanciz,
in REX version 2.50.1 you should use
i2c_bus_handle = OpenI2C("/dev/i2c-1");
See e.g. this example on reading the MCP3422 ADC.
Best regards,
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Pages: 1
Topic closed