Debug.h 650 B

123456789101112131415161718192021222324252627
  1. /*****************************************************************************
  2. * | File : Debug.h
  3. * | Author : Waveshare team
  4. * | Function : debug with printf
  5. * | Info :
  6. * Image scanning
  7. * Please use progressive scanning to generate images or fonts
  8. *----------------
  9. * | This version: V1.0
  10. * | Date : 2018-01-11
  11. * | Info : Basic version
  12. *
  13. ******************************************************************************/
  14. #ifndef __DEBUG_H
  15. #define __DEBUG_H
  16. #include <Wire.h>
  17. #define USE_DEBUG 1
  18. #if USE_DEBUG
  19. #define Debug(__info) Serial.print(__info)
  20. #else
  21. #define Debug(__info)
  22. #endif
  23. #endif