include Terminal.h only #ifdef _TERMINAL_

This commit is contained in:
Graeme Harker 2022-01-29 20:47:35 +00:00
parent ef2e84ec01
commit 4ceb6506ed
1 changed files with 2 additions and 1 deletions

View File

@ -20,11 +20,12 @@
#include <SPI.h>
#include <Terminal.h>
#undef _TERMINAL_ //turn off Terminal
//#define _TERMINAL_ //turn on Terminal
#ifdef _TERMINAL_
#include <Terminal.h>
// Create a terminal in TWI mode
Terminal term; //uses A4 (SDA) and A5 (SCL) that conflict with other usage of A4-A5
//so we need to put CS on low, RST = A0, DC = A1, MOSI = A2, SCK = A3, MISO = not connected (NC)