Back to Index

4-sample moving average for quick smoothing.

Signature

MOVAVG_4(x, &y);

Example

// Example pattern from analog_macros.ems
MOVAVG_4(ain(1), smooth);