knob2float9
Convert counts (probably from an encoder) to a float value
Usage
loadrt knob2float [count=N|names=name1[,name2...]]
Functions
knob2float.N (requires a floating-point thread)
Pins
knob2float.N.counts s32 in
|
Counts |
|---|---|
knob2float.N.enable bit in
|
When TRUE, output is controlled by count, when FALSE, output is fixed |
knob2float.N.scale float in
|
Amount of output change per count |
knob2float.N.out float out
|
Output value |
Parameters
knob2float.N.max-out float rw (default: 1.0)
|
Maximum output value, further increases in count will be ignored |
|---|---|
knob2float.N.min-out float rw (default: 0.0)
|
Minimum output value, further decreases in count will be ignored |
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.