All checks were successful
Generate Documentation / build (push) Successful in 15s
31 lines
604 B
C
31 lines
604 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();
|
|
|
|
/**
|
|
* @brief Resets the potentiometer by setting the wiper all the way to the A pin
|
|
*
|
|
*/
|
|
void resetPotentiometer(); |