development #4
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @file ledControlls.cpp
|
||||
* @author Lyubomir Penev (me@lpenev.com)
|
||||
* @author Lyubomir Penev (me@lpenev.com, 571147@student.fontys.nl)
|
||||
* @brief This file contains all the functions which control the LEDs used to indicate the current max volume
|
||||
* @version 0.1
|
||||
* @date 2025-10-31
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* @file potControlls.cpp
|
||||
* @author Lyubomir Penev (me@lpenev.com)
|
||||
* @author Lyubomir Penev (me@lpenev.com, 571147@student.fontys.nl)
|
||||
* @brief Here are all the functions responsible for incrementing and decrementing the potentiometer
|
||||
* @version 0.1
|
||||
* @date 2025-10-31
|
||||
*
|
||||
*
|
||||
* @copyright Copyright (c) 2025
|
||||
*
|
||||
*
|
||||
* Here are all the functions responsible for incrementing and decrementing the MCP4011 digital potentiometer. For more information on the protocol used to control the potentiometer you can look on pages 29 and 31 of the datasheet, and for timing information you can checkout pages 6 and 7.
|
||||
*
|
||||
*
|
||||
* Datasheet: https://ww1.microchip.com/downloads/en/devicedoc/21978a.pdf
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <Arduino.h>
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
/**
|
||||
* @brief This function moves the potentiometer wiper one step to pin A
|
||||
*
|
||||
*
|
||||
*/
|
||||
void potIncrement()
|
||||
{
|
||||
@@ -39,7 +39,7 @@ void potIncrement()
|
||||
|
||||
/**
|
||||
* @brief This function moves the potentiometer wiper one step to pin B
|
||||
*
|
||||
*
|
||||
*/
|
||||
void potDecrement()
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @file staffFunctions.cpp
|
||||
* @author Lyubomir Penev (me@lpenev.com)
|
||||
* @author Lyubomir Penev (me@lpenev.com, 571147@student.fontys.nl)
|
||||
* @brief Here are all the implementations of the staff functions
|
||||
* @version 1.0
|
||||
* @date 2025-10-23
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
/**
|
||||
* @brief Used to increase the maximum staff volume
|
||||
*
|
||||
*
|
||||
* @param maxVolume Pointer to the variable used to keep track of staff volume
|
||||
*/
|
||||
void staffVolumeUp(int *maxVolume)
|
||||
@@ -28,7 +28,7 @@ void staffVolumeUp(int *maxVolume)
|
||||
|
||||
/**
|
||||
* @brief Used to decrease the maximum staff volume. If the max volume is set lower than what the current user volume is, then the user volume will also be lowered.
|
||||
*
|
||||
*
|
||||
* @param maxVolume Pointer to the variable used to keep track of the max volume
|
||||
* @param userVolume Pointer to the variable used to keep track of the user volume
|
||||
* @param oldUserVolume Pointer to the variable used to keep track of the user volume when in mute or lowered
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @file userFunctions.cpp
|
||||
* @author Lyubomir Penev (me@lpenev.com)
|
||||
* @author Lyubomir Penev (me@lpenev.com, 571147@student.fontys.nl)
|
||||
* @brief Here are all the implementations for the user functions.
|
||||
* @version 1.0
|
||||
* @date 2025-10-23
|
||||
|
||||
Reference in New Issue
Block a user