Ejercicio #34
Código:
#include <LiquidCrystal.h>
int trig = 8;
int eco = 9;
int t;
int d;
LiquidCrystal lcd(2,3,4,5,6,7);
void setup()
{
Serial.begin(9600);
lcd.begin(16,2);
pinMode (trig, OUTPUT);
pinMode (eco, INPUT);
}
void loop()
{
digitalWrite(trig, HIGH);