Added the needed defines for the high and low hysteresis points.
This commit is contained in:
parent
b9e85d3719
commit
3caa74f642
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue