| 
   
    MIDI Control Surface library for Arduino 
   | 
 
 
 
 
Go to the documentation of this file.    1 #ifndef AH_SETTINGSWRAPPER_HPP 
    2 #define AH_SETTINGSWRAPPER_HPP 
    9 #include "NamespaceSettings.hpp" 
   12 #define AH_IS_EMPTY_HELPER(x) x##1 
   13 #define AH_IS_EMPTY(x) AH_IS_EMPTY_HELPER(x) == 1 
   15 #if AH_IS_EMPTY(DEBUG_OUT) 
   22 #ifndef NO_DEBUG_PRINTS 
   23 #define DEBUG_OUT std::cout 
   28 #ifdef AH_INDIVIDUAL_BUTTON_INVERT 
   29 #define AH_INDIVIDUAL_BUTTON_INVERT_STATIC 
   31 #define AH_INDIVIDUAL_BUTTON_INVERT_STATIC static 
   36 #if defined(DEBUG_OUT) && (DEBUG_OUT == Serial) &&                             \ 
   37     !defined(TEENSY_SERIALUSB_ENABLED) 
   39     "Debugging is enabled on the CDC Serial port, but the USB type doesn't support Serial" 
   47     "ANALOG_FILTER_TYPE isn't wide enough to satisfy filter requirements. \n" 
   48     "Either decrease the ADC resolution, decrease the filter shift factor, or" 
   49     "use a wider type (e.g. uint32_t)");
 
   58 #endif // AH_SETTINGSWRAPPER_HPP 
 
#define AH_DIAGNOSTIC_POP()
 
All user settings and debugging options can be changed here.
 
constexpr uint8_t ADC_BITS
The bit depth to use for the ADC (Analog to Digital Converter).
 
#define AH_DIAGNOSTIC_WERROR()
 
#define BEGIN_AH_NAMESPACE
 
uint16_t ANALOG_FILTER_TYPE
The unsigned integer type to use for analog inputs during filtering.
 
constexpr uint8_t ANALOG_FILTER_SHIFT_FACTOR
The factor for the analog filter:   Difference equation:  where .