Henglos IO
Built-in packages

GPIO

Directly reads or drives a single digital pin on the board.

Directly reads or drives a single digital pin on the board. Use this when no more specific component (Servo, etc) fits what you're wiring up.

@henglosio/component-gpiov1.0.0platform ^1.0.0
NodeKindWhat it does
Pin TriggerTriggerRuns its branch when a pin changes — a button pressed, a sensor going high.
WriteActionSets the pin as output and drives it to the given digital value.
ReadActionSets the pin as input and reads its current digital value.

Triggers

Pin Trigger

Runs its branch when a pin changes — a button pressed, a sensor going high.

A trigger: no input, one Out — the first action of its branch.

Settings

SettingTypeDefaultWhat it's for
PinPin (digital in)—Required. The pin to watch.
EdgeOne of: Rising (low → high), Falling (high → low), BothRising (low → high)Which change fires it.
PullOne of: None, Up, DownNoneThe board's internal resistor — Up for a button wired to ground.
DebounceNumber50Changes closer than this to the last one are ignored (a button bounces), in ms.

Publishes

OutputTypeWhat it is
levelboolThe pin right after the change.
atintWhen it changed — the board's clock, in ms.

Actions

Write

Sets the pin as output and drives it to the given digital value.

Settings

SettingTypeDefaultWhat it's for
PinPin (digital out)—Board pin this GPIO instance controls.
ValueOn / offOffValue of GPIO send.

Publishes

OutputTypeWhat it is
valueboolThe digital value that was written (0 = LOW, 1 = HIGH).

Read

Sets the pin as input and reads its current digital value.

Settings

SettingTypeDefaultWhat it's for
PinPin (digital in)—Board pin this GPIO instance controls.

Publishes

OutputTypeWhat it is
valueboolThe digital value read from the pin (0 = LOW, 1 = HIGH).

On this page