aeropuerto#

Inicializando la clase triport#

Un Triport, o expansor de 3 cables, se crea utilizando el siguiente constructor:

The triport constructor creates a triport object.

Parámetro

Descripción

port

El puerto al que está conectado el expansor de 3 cables en el cerebro EXP.

// Construct a 3-Wire Expander "Triport1" with the triport class.
triport Triport1 = triport(PORT1);

This Triport1 object will be used in all subsequent examples throughout this API documentation when referring to triport class methods.

Triports also have a letter attribute denoting the specific port in use. Each port is identified by a letter (A through H) and can be accessed using the format Triport1.X, where X is the port letter. For example, Triport1.A refers to the Sensor connected to the Triport’s port A.

Métodos de clase#

installed()#

The installed() command returns the status of what is installed on the port.

Returns: true if a 3-Wire Port device is installed in the port. false if one is not.