Infra

IRRX[0] - IRRX[9]

It can receive signals from firmware infrared remote controls with a suitable infrared receiver, e.g., TSOP31238. In the Setup/Peripheral menu, it needs to be configured which GPIO pin the receiver is connected to.

IRRX[0]S
After issuing the command, press a selected button on the remote control, then press it again. If the two received codes match, they will be stored in the IRRX.dat file in memory. The process is visible on STDOUT.

IRRX[0]:LED(FLASH)
When the button associated with IRRX[0] is pressed, it executes the command (LED flashes).



Examples

D5 - D8 relay remote control
GPIO[5]L|
GPIO[6]L|
GPIO[7]L|
GPIO[8]L|
IRRX[0]:GPIO[5]I|
IRRX[1]:GPIO[6]I|
IRRX[2]:GPIO[7]I|
IRRX[3]:GPIO[8]I

<html> <body> <H1>Learn IR RC buttons</H1> <button type="button" onclick="sendWS('IRRX[0]S');">Learn Button 1</button> <button type="button" onclick="sendWS('IRRX[1]S');">Learn Button 2</button> <button type="button" onclick="sendWS('IRRX[2]S');">Learn Button 3</button> <button type="button" onclick="sendWS('IRRX[3]S');">Learn Button 4</button> <H2 id="rec"></H2> <script type="text/javascript" src="tools.js"></script> <script> startWS(3); function onMessage(msg) { document.getElementById('rec').innerText = msg; } </script> </body> </html>