Machinekit Documentation
HAL Component — TOGGLE2NISTV2
INSTANTIABLE COMPONENTS — General
All instantiable components can be loaded in two manners
Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)
NAME
toggle2nistv2 — toggle button to nist logic
SYNOPSIS
toggle2nistv2
USAGE SYNOPSIS
loadrt toggle2nistv2
OR
newinst toggle2nistv2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
DESCRIPTION
toggle2nist can be used with a momentary push button connected to a toggle component to control a device that has seperate on and off inputs and has an is-on output. If in changes states via the toggle output If is-on is true then on is false and off is true. If is-on is false the on true and off is false.
FUNCTIONS
toggle2nistv2.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
LICENCE
GPL