WOLFRAM SYSTEM MODELER

DigitalInput

Reads a digital signal from the specified pin

Wolfram Language

In[1]:=
SystemModel["ModelPlug.Pins.DigitalInput"]
Out[1]:=

Information

Reads a digital signal from the specified pin. This component uses the 'digitalRead' function of the Arduino.

Signal Range: This component accepts only Boolean signals (true/false).

Parameters (3)

Pin

Value: 0

Type: Integer

Description: Number of the digital pin

InitValue

Value: false

Type: Boolean

Description: Initial value until the board responds

PullUp

Value: true

Type: Boolean

Description: Enables the pull-up resistor of the input

Connectors (2)

y

Type: BooleanOutput

Description: 'output Boolean' as connector

pinConnector

Type: PinConnector