You are not logged in.
Pages: 1
Topic closed
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
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
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Pages: 1
Topic closed