LiquidMenu  1.5.1
Menu creation Arduino library for LCDs, wraps LiquidCrystal.
LiquidMenu_debug.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #if LIQUIDMENU_DEBUG
9  #ifdef ARDUINO_ARCH_AVR
10  #include <Arduino.h>
11  #define DEBUG(x) Serial.print(x);
12  #define DEBUGLN(x) Serial.println(x);
13  #define DEBUG2(x, y) Serial.print(x, y);
14  #define DEBUGLN2(x, y) Serial.println(x, y);
15  #else
16  #define DEBUG(x) std::cout << x;
17  #define DEBUGLN(x) std::cout << x << std::endl;
18  #define DEBUG2(x, y) std::cout << x << y;
19  #define DEBUGLN2(x, y) std::cout << x << y << std::endl;
20  #endif
21 #else
22  #define DEBUG(x)
24  #define DEBUGLN(x)
26  #define DEBUG2(x, y)
28  #define DEBUGLN2(x, y)
30 #endif