---
name: "toggle"
section: "9"
platform: "linux"
package: "linuxcnc-uspace"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/toggle"
---

# toggle(9)

'push-on, push-off' from momentary pushbuttons

## NAME

toggle - 'push-on, push-off' from momentary pushbuttons

## SYNOPSIS

**loadrt toggle \[count=*N*\|names=*name1*\[,*name2...*\]\]**

## DESCRIPTION

     ┐     ┌──┐        ┌──┐\
 in : └─────┘  └────────┘  └──\
      ┐     ┌───────────┐\
 out: └─────┘           └─────

## FUNCTIONS

- **toggle.***N*

  ## PINS

- **toggle.*N*.in bit in**

  button input

- **toggle.*N*.out bit io**

  on/off output

## PARAMETERS

- **toggle.*N*.debounce u32 rw (default: *2*)**

  debounce delay in periods

## AUTHOR

John Kasunich

## LICENSE

GPL
