John-Wiliam/Src/service/button/service_buttonUtils.c
unsigned char unbounceButton(service_buttonUtils_Button* button, unsigned char rawButtonValue) {
  unsigned char buttonValue = 0;
  
  updateButtonIntegral(button, rawButtonValue);
  clampButtonIntegral(button);
  if(button->buttonIntegral == BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED) {
    buttonValue = 1;
  }
  
  return buttonValue;
}
// unbounce the button, and update private vars accordingly
unbounce the button, and update private vars accordingly
unbounce the button and update private vars accordingly
unsigned char unbounceButton(service_buttonUtils_Button* button, unsigned char rawButtonValue) {
  unsigned char buttonValue = 0;
  updateButtonIntegral(button, rawButtonValue);
  clampButtonIntegral(button);
  if(button->buttonIntegral == BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED) {
    buttonValue = 1;
  }
  return buttonValue;
}
unsigned char unbounceButton ( service_buttonUtils_Button * button , unsigned char rawButtonValue ) { unsigned char buttonValue = 0 ; updateButtonIntegral ( button , rawButtonValue ) ; clampButtonIntegral ( button ) ; if ( button -> buttonIntegral == BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED ) { buttonValue = 1 ; } return buttonValue ; }
unbounce the button, and update private vars accordingly
unbounce the button and update private vars accordingly