Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2017-03-06 20:49:00

radovanciz
Member
Registered: 2017-03-06
Posts: 1

REXLANG problem with Open function for I2c device

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

#2 2017-03-07 09:59:39

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: REXLANG problem with Open function for I2c device

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

Offline

Board footer

Powered by FluxBB