Control Surface  1.1.1
MIDI Control Surface library for Arduino
Namespaces | Macros | Typedefs | Variables
AH/Settings/Settings.hpp File Reference

All user settings and debugging options can be changed here. More...

#include <AH/Types/Frequency.hpp>
#include <AH/Hardware/ADCConfig.hpp>
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for AH/Settings/Settings.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 AH
 

Macros

#define DEBUG_OUT
 The debug output. More...
 
#define FATAL_ERRORS
 Exit when encountering an error, instead of trying to recover (recommended). More...
 
#define AH_INDIVIDUAL_BUTTON_INVERT
 Make it possible to invert individual push buttons. More...
 

Typedefs

using ANALOG_FILTER_TYPE = uint16_t
 The unsigned integer type to use for analog inputs during filtering. More...
 

Variables

constexpr unsigned long defaultBaudRate = 115200
 The default baud rate for debug output. More...
 
constexpr uint8_t ADC_BITS = ADC_RESOLUTION
 The bit depth to use for the ADC (Analog to Digital Converter). More...
 
constexpr uint8_t ANALOG_FILTER_SHIFT_FACTOR = 2
 The factor for the analog filter:
Difference equation: \( y[n] = \alpha\cdot x[n] + (1-\alpha)\cdot y[n-1] \) where \( \alpha = \left(\frac{1}{2}\right)^{ANALOG\_FILTER\_SHIFT\_FACTOR} \). More...
 
constexpr unsigned long BUTTON_DEBOUNCE_TIME = 25
 The debounce time for momentary push buttons in milliseconds. More...
 
constexpr unsigned long LONG_PRESS_DELAY = 450
 The time in milliseconds before a press is registered as a long press. More...
 
constexpr unsigned long LONG_PRESS_REPEAT_DELAY = 200
 The time between increments/decremnets during a long press. More...
 
constexpr unsigned long FILTERED_INPUT_UPDATE_INTERVAL = 1000
 The interval between updating filtered analog inputs, in microseconds. More...
 
constexpr static Frequency SPI_MAX_SPEED = 8_MHz
 

Detailed Description

All user settings and debugging options can be changed here.

Definition in file AH/Settings/Settings.hpp.

Macro Definition Documentation

◆ DEBUG_OUT

#define DEBUG_OUT

The debug output.


Use #define DEBUG_OUT Serial to print debugging information to the serial monitor.

Note
Printing debug information can slow down the program dramatically.

Definition at line 26 of file AH/Settings/Settings.hpp.

◆ FATAL_ERRORS

#define FATAL_ERRORS

Exit when encountering an error, instead of trying to recover (recommended).

Definition at line 30 of file AH/Settings/Settings.hpp.

◆ AH_INDIVIDUAL_BUTTON_INVERT

#define AH_INDIVIDUAL_BUTTON_INVERT

Make it possible to invert individual push buttons.

Enabling this will increase memory usage.

Definition at line 89 of file AH/Settings/Settings.hpp.