From bad54ad82cc18f2aeef2586aa7a233403e81870f Mon Sep 17 00:00:00 2001 From: chuchana Date: Sat, 6 Aug 2016 18:43:04 +0200 Subject: [PATCH] Update SWTFT.cpp Fixed issue: swap not declared #7 (as suggested by donpedro43) --- SWTFT-Shield/SWTFT.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SWTFT-Shield/SWTFT.cpp b/SWTFT-Shield/SWTFT.cpp index 36967ea..f2a842b 100644 --- a/SWTFT-Shield/SWTFT.cpp +++ b/SWTFT-Shield/SWTFT.cpp @@ -18,6 +18,7 @@ #define TFTWIDTH 240 #define TFTHEIGHT 320 +#define swap(a, b) { int16_t t = a; a = b; b = t; } // Constructor for breakout board (configurable LCD control lines). // Can still use this w/shield, but parameters are ignored.