MARTES 02 DE OCTUBRE DE 2019



int oinLed=2;
int dato=0;
void setup () (
  pinMode(pinLed, OUTPUT):
  Serial.begin(9600);
 
 )
 void loop() (
  if(Serial, available()>0)
  (dato=Serial.read();)
  if (dato=='1')
  (digitalWrite(pinLed,HIGH);)
  else if (dato=='0')
  (digitalWrite(pinLed LOW);)
 

  )

Comentarios

Entradas populares de este blog

Bitacora Pulsador

Clase Mecánica #2

Clase Mecánica #5