gharryh
#1
LS,
This error puzzles me for some hours now
#define useTFT // TFT as screen output
// comment out to use LCD//#define ILI9341
#define ST7735
#if ENABLED(useTFT)
#include <SPI.h>
#include <Adafruit_GFX.h> // Core graphics library
#if ENABLED(ST7735)
#include <Adafruit_ST7735.h> // Hardware-specific library
// Declare an instance of the ST7735
Adafruit_ST7735 TFTscreen = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
#endif //ST7735
#endif //useTFT
I did some web searchin but no real solution.
Any suggestions??
What is "ENABLED" supposted to do? Did you mean "defined"?
gharryh
#4
septillion:
What is "ENABLED" supposted to do? Did you mean "defined"?
// Macros to support option testing
#define CAT(a, ...) a ## VA_ARGS
#define SWITCH_ENABLED_false 0
#define SWITCH_ENABLED_true 1
#define SWITCH_ENABLED_0 0
#define SWITCH_ENABLED_1 1
#define SWITCH_ENABLED_0x0 0
#define SWITCH_ENABLED_0x1 1
#define SWITCH_ENABLED 1
#define ENABLED(b) CAT(SWITCH_ENABLED, b)
#define DISABLED(b) !ENABLED(b)
Juraj
#5
but your #define useTFT doesn't define a value