Back to Index

Simple IIR low-pass filter. Updates y = y + (x - y)/k.

Signature

LPF_IIR(x, k, &y);

Example

// Example pattern from analog_macros.ems
LPF_IIR(ain(1), 8, filtered);