| 
    Adafruit Library
    
   | 
 
#include "Wippersnapper_AnalogIO.h"Functions | |
| void | calculateHysteresis (analogInputPin pin, uint16_t pinValRaw, uint16_t &pinValThreshHi, uint16_t &pinValThreshLow) | 
| Calculates the hysteresis for the pin value.  More... | |
This file provides an API for interacting with a board's analog IO pins.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Copyright (c) Brent Rubell 2020-2023 for Adafruit Industries.
BSD license, all text here must be included in any redistribution.
| void calculateHysteresis | ( | analogInputPin | pin, | 
| uint16_t | pinValRaw, | ||
| uint16_t & | pinValThreshHi, | ||
| uint16_t & | pinValThreshLow | ||
| ) | 
Calculates the hysteresis for the pin value.
| pin | The desired analog pin to calculate hysteresis for. | 
| pinValRaw | The pin's raw value. | 
| pinValThreshHi | The pin's high threshold value. | 
| pinValThreshLow | The pin's low threshold value. | 
 1.8.13