25 lines
483 B
C
25 lines
483 B
C
#pragma once
|
|
|
|
/**
|
|
* @brief Function used to read state of a normally open(LOW) button
|
|
*
|
|
* @param buttonPin The pin of the button
|
|
* @return true
|
|
* @return false
|
|
*/
|
|
bool debounceReadNO(int buttonPin);
|
|
|
|
/**
|
|
* @brief Function used to read state of a normally closed(HIGH) button
|
|
*
|
|
* @param buttonPin The pin of the button
|
|
* @return true
|
|
* @return false
|
|
*/
|
|
bool debounceReadNC(int buttonPin);
|
|
|
|
/**
|
|
* @brief Sets all the pins to their correct modes
|
|
*
|
|
*/
|
|
void setPinModes(); |