DigitalIO:
Filter:
Classes | UGens > Bela

DigitalIO : UGen : AbstractFunction : Object

Read or write data to a digital pin
Source: BelaUGens.sc

Description

Reads or writes digital data from or to a digital pin. The pin number of this UGen can be modulated, as well as its I/O mode, which allows to tri-state the pin.

NOTE: This UGen only works on Bela.
NOTE: If you do not need to change the pin mode or the pin, you should use the UGen DigitalIn or DigitalOut

Class Methods

DigitalIO.ar(digitalPin: 0, output: 0, pinMode: 0, mul: 1.0, add: 0.0)

The output of this UGen is always the last value read when the digital pin was an input.

Arguments:

digitalPin

Digital pin number to write to. Pin numbers begin at 0. This value can be modulated at audiorate.

output

Value to write out to the pin - the value will be 1 when the argument is larger than 0, otherwise 0. This value can be modulated at audio rate.

pinMode

Value to write out to the pin - the pin will be an input when the argument is smaller than 0.5, otherwise an output. This value can be modulated at audiorate.

mul
add

DigitalIO.kr(digitalPin: 0, output: 0, pinMode: 0, mul: 1.0, add: 0.0)

The output of this UGen is always the last value read when the digital pin was an input.

Arguments:

digitalPin

Digital pin number to write to. Pin numbers begin at 0.

output

Value to write out to the pin - the value will be 1 when the argument is larger than 0, otherwise 0.

pinMode

Value to write out to the pin - the pin will be an input when the argument is smaller than 0.5, otherwise an output.

mul
add

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.signalRange

Examples