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

7 methods from UGen ► show
7 methods from Object ► show

Instance Methods

Inherited instance methods

92 methods from UGen ► show
159 methods from AbstractFunction ► show
260 methods from Object ► show

Undocumented instance methods

.signalRange

Examples