Skip to main content

Auto Connect

Auto Connect is a powerful feature that automatically wires compatible modules together, saving you from manually connecting each output to each input. It is particularly useful when building complex HID controllers with many buttons and axes.

How It Works​

Some modules know which type of module they should connect to. For example, a Button module knows it should connect to a BitPacker, and a BitPacker knows it should connect to a Serializer. When you select a group of modules and press A, Node Blue automatically creates the appropriate connections from left to right, based on these built-in rules.

Keyboard Shortcuts​

ShortcutAction
AAuto Connect — Wires selected modules left-to-right. Skips outputs that are already connected.
Shift AForce Auto Connect — Same as A, but also reconnects outputs that already have a connection, allowing multiple connections from the same output.

Example: Building a Game Controller​

Let's build a simple game controller with buttons and analog axes, using Auto Connect to wire everything together.

Step 1: Place the modules​

Drag the following modules from the palette onto the canvas, arranged roughly left to right:

  1. Button (Input category) — reads a physical push button
  2. Bodac (Input category) — reads multiple buttons at once using a resistor ladder on a single analog pin
  3. BitPacker (DataPacking category) — packs individual button bits into bytes
  4. Serializer (DataPacking category) — serializes packed data into a byte stream
  5. HID (HID category) — sends the data to the computer as a USB HID game controller
Modules placed on canvas before auto-connect

At this point, no wires exist between the modules.

Step 2: Select all and Auto Connect​

  1. Press Ctrl A to select all modules (they turn orange)
  2. Press A to auto-connect
Modules after auto-connect

Node Blue automatically creates the following connections:

  • Button → BitPacker — because Button's auto-connect rule is *Packer (any module whose name contains "Packer")
  • Bodac → BitPacker — same rule, Bodac's button outputs target *Packer
  • BitPacker → Serializer — because BitPacker's first output auto-connects to nSerializer

The Serializer → HID connection is not created automatically, because Serializer does not have an auto-connect rule. You need to wire this one manually by dragging from the Serializer output to the HID input.

tip

Auto Connect works from left to right — it connects outputs of left-side modules to inputs of right-side modules. Make sure your modules are arranged in the correct order before pressing A.

Auto Connect Rules​

Each module can define how its outputs should auto-connect:

RuleMeaningExample
trueConnect to any module to the rightAnalogInput, Multiplexer
"nSerializer"Connect only to a SerializerBitPacker (first output)
"*Packer"Connect to any module whose name contains "Packer"Button, DigitalInput, Bodac
falseDo not auto-connect this outputBitPacker (second output)

Modules without an auto-connect rule (like Serializer, HID, or MainLoop) will not auto-connect their outputs, but they can still be targets of other modules' auto-connect rules.

When to Use Shift+A (Force)​

Normally, pressing A skips outputs that are already connected. This prevents creating duplicate wires when you press A multiple times.

Use Shift A when you intentionally want to connect an output to multiple targets. For example, if you have one Button connected to a BitPacker and you add a second BitPacker, pressing Shift A will connect the Button to the second BitPacker as well, even though its output is already connected to the first one.

Auto Connect on Paste​

Auto Connect also works when you paste modules (Ctrl V). If pasted modules have auto-connect rules, they will automatically connect to compatible modules already on the canvas. This is very handy when you copy a group of input modules and paste them next to an existing BitPacker — they wire themselves up instantly.

Now that you know how to use Auto Connect, let's learn about wiring diagrams.