Machinekit

Machinekit

Machinekit Documentation

HAL Component — LED_DIM

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

led_dim — LinuxCNC HAL component for dimming LEDs

SYNOPSIS

led_dim

USAGE SYNOPSIS

loadrt led_dim
OR
newinst led_dim <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]

( args in [ ] denote possible args and parameters, may not be used in all components )

DESCRIPTION

Component for LED dimming according to human perception of brightness of light. .LP The output is calculated using the CIE 1931 formula.

FUNCTIONS

led_dim.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )

Update the output value

PINS

led_dim.N.in float in ( OR <newinstname>.in float in ) - Brightness input value → 0 to 1

led_dim.N.out float out ( OR <newinstname>.out float out ) - Luminance output value → 0 to 1

LICENCE

GPL