LabWired The easy way to build hardware
board I/O module

button-module

The button-module is a board I/O module in the LabWired part catalog. Its catalog type is button-module. It connects to the MCU over GPIO. It has 3 pins. A device model in the simulation engine, reached through a dedicated dispatch path rather than the peripheral registry.

From the catalog: Same Button model as `button`, with one difference that matters: polarity is STATED by the part (boardIoActiveHigh) instead of derived from the wires. The derivation answers with whichever rail a wire reaches first, and a powered GND/VCC/SIG module reaches both, so the modelled polarity would otherwise depend on the order two wires were drawn in. The vendor states a HIGH level on press. SimInput channel: pressed.

Key facts

CategoryBoard I/O modules
Catalog typebutton-module
InterfaceGPIO
Pins3

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

button-module pinout

PinElectrical typeFunction
GND Power input Supply
VCC Power input Supply
SIG Output GPIO

How to simulate the button-module in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the button-module (catalog type button-module).
  3. Connect GND and VCC to the supply and ground of the board.
  4. Connect SIG to a free GPIO pin.
  5. Run the firmware. It drives and reads the pins of the part, and the device model responds on those pins.

Related Board I/O modules

All Board I/O modules · All parts

No manufacturer datasheet is indexed for this part yet, so none is linked here.