Files
ITEADLIB_Arduino_Nextion/NexConfig.h
shennongmin 98850de2cf Update doc of file comments.
Signed-off-by: shennongmin <wupangfee@gmail.com>
2015-08-14 11:55:47 +08:00

38 lines
1.0 KiB
C

/**
* @file NexConfig.h
*
* Options for user can be found here.
*
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
* @date 2015/8/13
* @copyright
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
#ifndef __NEXCONFIG_H__
#define __NEXCONFIG_H__
/* enable debug serial */
#define DEBUG_SERIAL_ENABLE
/* define serial for debug */
#define dbSerial Serial
/* define serial for communicate with Nextion screen */
#define nexSerial Serial2
#ifdef DEBUG_SERIAL_ENABLE
#define dbSerialPrint(a) dbSerial.print(a)
#define dbSerialPrintln(a) dbSerial.println(a)
#define dbSerialBegin(a) dbSerial.begin(a)
#else
#define dbSerialPrint(a) do{}while(0)
#define dbSerialPrintln(a) do{}while(0)
#define dbSerialBegin(a) do{}while(0)
#endif
#endif /* #ifndef __NEXCONFIG_H__ */