Paso 2: código
Copie y pegue el siguiente código en el IDE de Arduino#include
ezLCD3 lcd;
pirPin int = 3;
void setup()
{
LCD.Begin (EZM_BAUD_RATE);
LCD.CLS();
LCD.Picture(40,0,"EMH.gif");
LCD.Picture(0,45,"ArdHeart.gif");
LCD.Picture(110,135,"arLogo.gif");
pinMode (pirPin, entrada);
}
void loop()
{
if(digitalRead(pirPin) == HIGH)
{
LCD.Light(100);
}
if(digitalRead(pirPin) == LOW)
{
LCD.Light(5);
}
}