INPUT / OUTPUT / INPUT PULLUP

De ArduWiki
Revisión del 15:13 2 jul 2018 de Kike GL (Discusión | contribuciones) (Ejemplos)

Saltar a: navegación, buscar

Descripción

Sintaxis

pinMode[pin, tipo];

Parámetros

pin
numero del pin digital (0~13 + 14~19). Puedes definir el numero de pin como const byte.
tipo
puede ser INPUT / OUTPUT / INPUT_PULLUP

Advertencias

  • Nota que INPUT, OUTPUT y INPUT_PULLUP se deben escribir en mayusculas.

Ejemplos

pinMode(2, INPUT);
pinMode(3, OUTPUT);
pinMode(4, INPUT_PULLUP);

Vea también

Referencias externas