Paso 3: Código de receptor
#include
#include
LiquidCrystal lcd (7, 6, 5, 4, 3, 2);
cad de Char [100];
int pos = 0;
void setup()
{
LCD.Begin (16, 2);
lcd.setCursor (1, 0);
vw_setup(2000);
vw_rx_start();
}
void loop()
{
byte buf [VW_MAX_MESSAGE_LEN];
buflen bytes = VW_MAX_MESSAGE_LEN;
int i;
Si (vw_get_message (buf & buflen))
{
if(pos < 2)
lcd.setCursor (0, pos);
otra cosa
{
pos = 0;
LCD.Clear();
}
para (i = 1; i < buflen; i ++)
{
LCD.Print((Char)BUF[i]);
pos ++;
}
}
}