Skip to main content

<pushbutton />

Overview

Pushbuttons a common type of switch normally open momentary switch. They are commonly used as a reset or pairing button.

export default () => (
<board width="10mm" height="10mm">
<pushbutton
name="SW1"
footprint="pushbutton"
/>
</board>
)
Schematic Circuit Preview

Pins

PinAliasesDescription
1side1One of the left side pins
2side1One of the left side pins
3side2One of the right side pins
4side2One of the right side pins
info

The pins are internally connected, so you only need to connect one of the left or right pins.

Example: A small keyboard grid of pushbuttons

import { grid } from "@tscircuit/math-utils"

export default () => (
<board width="36mm" height="36mm">
{grid({
rows: 3,
cols: 3,
}).map((cell) => (
<pushbutton
name={`SW${cell.index}`}
footprint="pushbutton"
schX={cell.center.x * 2}
schY={cell.center.y}
pcbX={cell.center.x * 12}
pcbY={cell.center.y * 12}
/>
))}
</board>
)
Schematic Circuit Preview