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

toggle-switch

The toggle-switch is a board I/O module in the LabWired part catalog. Its catalog type is toggle-switch. 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` and `slide-switch` — electrically a throw is a contact, and ON-ON means COM is tied to exactly one of 1/2 at all times, never floating. What differs from slide-switch is mechanical (panel toggle vs PCB slide), which is why it is a separate catalog type and not a spelling. SimInput channel: pressed.

Key facts

CategoryBoard I/O modules
Catalog typetoggle-switch
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.

toggle-switch pinout

PinElectrical typeFunction
1 Passive —
COM Passive —
2 Passive —

How to simulate the toggle-switch in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the toggle-switch (catalog type toggle-switch).
  3. Connect pin 1, COM and pin 2 as your circuit needs.
  4. 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.