alter WriteCmd macro to CD_DATA at the end

This commit is contained in:
prenticedavid
2017-12-25 17:08:04 +00:00
parent 7c69ff2211
commit 9b5e8b9248

View File

@@ -1,4 +1,4 @@
//#define USE_SPECIAL //check for custom drivers
#define USE_SPECIAL //check for custom drivers
#if defined(USE_SPECIAL)
#include "mcufriend_special.h"
#if !defined(USE_SPECIAL_FAIL)
@@ -589,5 +589,5 @@ static void setReadDir()
#define GPIO_INIT()
#endif
#define CTL_INIT() { GPIO_INIT(); RD_OUTPUT; WR_OUTPUT; CD_OUTPUT; CS_OUTPUT; RESET_OUTPUT; }
#define WriteCmd(x) { CD_COMMAND; write16(x); }
#define WriteData(x) { CD_DATA; write16(x); }
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
#define WriteData(x) { write16(x); }