Back to Index

Converts a raw 0-10V input to percent (0..100), clamped.

Signature

AIN_0_10V_TO_PCT(raw, &pct);

Example

// Example pattern from analog_macros.ems
AIN_0_10V_TO_PCT(ain(1), pct);