toggle(9)

TOGGLE(9) HAL Component TOGGLE(9)

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

2026-01-01 LinuxCNC Documentation