Files
Arduino-Volume-Controller/include/commonFunctions.h
Lyubomir Penev 57a7528ba3
All checks were successful
Generate Documentation / build (push) Successful in 15s
Added function to reset potentiometer
2025-11-02 14:18:01 +01:00

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();