Skip to content

Constants and Defines

github-actions[bot] edited this page Aug 10, 2026 · 2 revisions

Constants & Defines

Global macros, constants, and enumerations across header files.

Header MiP_Power_Up_-_D1_mini.h

Kind Name Value / Initializer Description
define MPU_D1_MINI_VERSION_MAJOR 2
define MPU_D1_MINI_VERSION_MINOR 0
define MPU_D1_MINI_VERSION_PATCH 1
define MPU_D1_MINI_VERSION "2.0.1"
define MPU_D1_MINI_VERSION_NUMBER `(MPU_D1_MINI_VERSION_MAJOR * 10000 + MPU_D1_MINI_VERSION_MINOR * 100 + \
MPU_D1_MINI_VERSION_PATCH)`
define MIP_DEBUG_NONE 0
define MIP_DEBUG_ERROR 1
define MIP_DEBUG_WARN 2
define MIP_DEBUG_INFO 3
define MIP_DEBUG_LEVEL MIP_DEBUG_NONE
define MIP_DEBUG_ERROR_PRINT
define MIP_DEBUG_ERROR_PRINTLN
define MIP_DEBUG_ERROR_PRINTF
define MIP_DEBUG_WARN_PRINT
define MIP_DEBUG_WARN_PRINTLN
define MIP_DEBUG_WARN_PRINTF
define MIP_DEBUG_INFO_PRINT
define MIP_DEBUG_INFO_PRINTLN
define MIP_DEBUG_INFO_PRINTF
define MIP_ASSERT mipAssert((EXPRESSION), __LINE__, __FILE__)

Header MPU_Clap.h

Kind Name Value / Initializer Description
enum MiPClapEnabled Clap event reporting state.

Header MPU_Debug.h

Kind Name Value / Initializer Description
define mDebug `{ \
if (debug.isActive(debug.ANY)) \
  debug.printf(__VA_ARGS__);   \

}| Logs formatted text at ANY debug level (always output if debugging active). | |define|mDebugP|{
if (debug.isActive(debug.PROFILER))
debug.printf(VA_ARGS);
}| Logs formatted text at the PROFILER debug level. | |define|mDebugV|{
if (debug.isActive(debug.VERBOSE))
debug.printf(VA_ARGS);
}| Logs formatted text at the VERBOSE debug level. | |define|mDebugD|{
if (debug.isActive(debug.DEBUG))
debug.printf(VA_ARGS);
}| Logs formatted text at the DEBUG debug level. | |define|mDebugI|{
if (debug.isActive(debug.INFO))
debug.printf(VA_ARGS);
}| Logs formatted text at the INFO debug level. | |define|mDebugW|{
if (debug.isActive(debug.WARNING))
debug.printf(VA_ARGS);
}| Logs formatted text at the WARNING debug level. | |define|mDebugE|{
if (debug.isActive(debug.ERROR))
debug.printf(VA_ARGS);
}| Logs formatted text at the ERROR debug level. | |define|TELNET_PORT|23| Default TCP port for the telnet debug server. | |define|MAX_TIME_INACTIVE|3600000| Maximum client inactivity duration before disconnect (in milliseconds). Default: 1 hour (3600000 ms). Set to 0 to disable. | |define|BUFFER_PRINT|150| Size of internal character buffer used for formatted telnet printing. | |define|COLOR_RESET|"\x1B[0m"| | |define|COLOR_BLACK|"\x1B[0;30m"| | |define|COLOR_RED|"\x1B[0;31m"| | |define|COLOR_GREEN|"\x1B[0;32m"| | |define|COLOR_YELLOW|"\x1B[0;33m"| | |define|COLOR_BLUE|"\x1B[0;34m"| | |define|COLOR_MAGENTA|"\x1B[0;35m"| | |define|COLOR_CYAN|"\x1B[0;36m"| | |define|COLOR_WHITE|"\x1B[0;37m"| | |define|COLOR_DARK_BLACK|"\x1B[1;30m"| | |define|COLOR_DARK_RED|"\x1B[1;31m"| | |define|COLOR_DARK_GREEN|"\x1B[1;32m"| | |define|COLOR_DARK_YELLOW|"\x1B[1;33m"| | |define|COLOR_DARK_BLUE|"\x1B[1;34m"| | |define|COLOR_DARK_MAGENTA|"\x1B[1;35m"| | |define|COLOR_DARK_CYAN|"\x1B[1;36m"| | |define|COLOR_DARK_WHITE|"\x1B[1;37m"| | |define|COLOR_BACKGROUND_BLACK|"\x1B[40m"| | |define|COLOR_BACKGROUND_RED|"\x1B[41m"| | |define|COLOR_BACKGROUND_GREEN|"\x1B[42m"| | |define|COLOR_BACKGROUND_YELLOW|"\x1B[43m"| | |define|COLOR_BACKGROUND_BLUE|"\x1B[44m"| | |define|COLOR_BACKGROUND_MAGENTA|"\x1B[45m| | |define|COLOR_BACKGROUND_CYAN|"\x1B[46m"| | |define|COLOR_BACKGROUND_WHITE|"\x1B[47m"` | |

Header MPU_Gesture.h

Kind Name Value / Initializer Description
enum MiPGestureMode Gesture or Radar operating mode.
enum MiPGesture Recognized gesture directions.

Header MPU_HeadLEDs.h

Kind Name Value / Initializer Description
enum MiPHeadLED Individual head LED patterns.

Header MPU_Mode.h

Kind Name Value / Initializer Description
enum MiPGameMode Game and App modes.

Header MPU_Motion.h

Kind Name Value / Initializer Description
enum MiPDriveDirection Drive direction for distanceDrive().
enum MiPTurnDirection Turn direction for distanceDrive().
enum MiPFallDirection Fall direction for internal fall commands.
enum MiPGetUp Get-up direction options.

Header MPU_Position.h

Kind Name Value / Initializer Description
enum MiPPosition MiP physical orientation or position states.

Header MPU_Radar.h

Kind Name Value / Initializer Description
enum MiPRadar Radar distance ranges.
enum MiPRadarMode Gesture or Radar operating mode.

Header MPU_Sound.h

Kind Name Value / Initializer Description
enum MiPSoundIndex Sound effects and built-in audio clips.
enum MiPVolume Speaker volume levels.

Clone this wiki locally