John-Wiliam/Src/service/button/service_buttonUtils.c
unsigned char service_buttonUtils_clicked(service_buttonUtils_Button* button) {
  unsigned char hasClicked = 0;
  
  // rising edge?
  if(!button->previousUnbouncedButtonValue
     && button->unbouncedButtonValue) {
    hasClicked = 1;
  }
  
  return hasClicked;
}
// returns 1 if the button is on a rising edge
// returns 0 otherwise
returns 1 if the button is on a rising edge
returns 0 otherwise
returns 1 if the button is on a rising edge returns 0 otherwise
unsigned char service_buttonUtils_clicked(service_buttonUtils_Button* button) {
  unsigned char hasClicked = 0;
  if(!button->previousUnbouncedButtonValue
     && button->unbouncedButtonValue) {
    hasClicked = 1;
  }
  return hasClicked;
}
unsigned char service_buttonUtils_clicked ( service_buttonUtils_Button * button ) { unsigned char hasClicked = 0 ; if ( ! button -> previousUnbouncedButtonValue && button -> unbouncedButtonValue ) { hasClicked = 1 ; } return hasClicked ; }
returns 1 if the button is on a rising edge
returns 0 otherwise
returns 1 if the button is on a rising edge returns 0 otherwise
// rising edge?