-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDebugging.h
More file actions
29 lines (25 loc) · 781 Bytes
/
Copy pathDebugging.h
File metadata and controls
29 lines (25 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*******************************************************************************
* AmbaSat-1
* Filename: Debugging.h
*
* This file is designed to provide debugging support for AmbaSat-1 and its
* range of I2C sensors
*
* Copyright (c) 2021 AmbaSat Ltd
* https://ambasat.com
*
* licensed under Creative Commons Attribution-ShareAlike 3.0
* ******************************************************************************/
#ifndef __Debugging__
#define __Debugging__
#define DEBUGGING
#ifdef DEBUGGING
#define PRINT_DEBUG(x) Serial.print(x)
#define PRINTLN_DEBUG(x) Serial.println(x)
#define PRINT_HEX(x) Serial.print(x, HEX)
#else
#define PRINT_DEBUG(x)
#define PRINTLN_DEBUG(x)
#define PRINT_HEX(x)
#endif
#endif // __Debugging__