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-04-23 15:01:19

hendrik
Member
Registered: 2015-11-01
Posts: 49

I2C Device

Hi,

I am looking to use a keypad/ lcd (i2c), see link below;
http://www.ebay.co.uk/itm/I2C-Keypad-Fr … ydrRjjRp2Q

The idea is to use the keypad to enter a pin code to enable/ disable a function using REX (Rexlang function block?), but I am unsure how to do this? I have not worked with I2C devices that much. I will use the lcd to display text messages (python scripts)


Regards,
Hendrik

Offline

#2 2017-04-26 15:54:52

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

Re: I2C Device

Hi Hendrik,
you can use the REXLANG function block to implement the I2C communication with the keypad/LCD. See the example on using MCP3422 ADC on I2C bus.

Alternatively, you can use Python scripts and exchange data with REX algorithm using REST API. The Python scripts can "push" or "inject" data into a running REX algorithm using HTTP POST and read data from REX algorithm using HTTP GET. See this example on data exchange using REST API: https://github.com/rexcontrols/REXexamp … PI_example.

I have no experience with the mentioned device so I cannot give you more hints. Hope this still helps.

Best regards,
Jaroslav

Offline

Board footer

Powered by FluxBB