Back to Index

Deadband comparator around a center point. Output is 1 above center+db and 0 below center-db.

Signature

DEADBAND(value, center, db, &q);

Example

DEADBAND(ain(1), 500, 20, high);
if (high) { out(1)=1; }