Added the needed defines for the high and low hysteresis points.

This commit is contained in:
jakeg00dwin 2024-10-18 21:43:04 -07:00
parent b9e85d3719
commit 3caa74f642
1 changed files with 15 additions and 2 deletions

View File

@ -28,10 +28,23 @@
#define HIGHTHRESH 1000
#ifndef HYSTERESIS
#define HYSTERESIS 900
/**
* @brief The upper Hystersis value.
* This is the upper bound of the digital/boolean hysteresis curve.
*/
#ifndef HYSTERESIS_HI
#define HYSTERESIS_HI 900
#endif
/**
* @brief The lower Hystersis value.
* This is the upper bound of the digital/boolean hysteresis curve.
*/
#ifndef HYSTERESIS_LO
#define HYSTERESIS_LO 700
#endif
/**
* @brief Checks if the adc pin is inbetween LOWTHRESH and HIGHTHRESH and then
* sets or disables the output pin on PORTA.