2.4''TFT LCD shield & Arduino GIGA R1(STM32H747XI) unable to compile (MCUFRIEND_kbv)

Maybe I am just being stupid due to lack of sleep or something else. But I am not able to get most of the programs to compile, The compiler is giving several errors.
I have already tested the programme on an Arduino UNO and MEGA and it works there. Only the Arduino UNO and MEGA work with an Atmel microcontroller and the GIGA with an STM microcontroller.
Can you please help me?

I upload my error messages.

#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN) ^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: suggested alternative: 'SPI1'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: suggested alternative: 'PIN_LED'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:122:5: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:122:5: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:122:5: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:122:5: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: error: 'write16' was not declared in this scope
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: suggested alternative: 'write24'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:122:5: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:122:5: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:125:9: error: 'write8' was not declared in this scope
write8(u8);
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:125:9: note: suggested alternative: 'write'
write8(u8);
^~~~~~
write
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:128:13: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:128:13: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:128:13: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:128:13: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: error: 'write16' was not declared in this scope
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: suggested alternative: 'write24'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:128:13: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:128:13: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: error: 'PIN_HIGH' was not declared in this scope
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: suggested alternative: 'HIGH'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'uint16_t read16bits()':
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:154:5: error: 'READ_8' was not declared in this scope
READ_8(ret);
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:154:5: note: suggested alternative: 'PE_8'
READ_8(ret);
^~~~~~
PE_8
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In member function 'uint16_t MCUFRIEND_kbv::readReg(uint16_t, int8_t)':
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: error: 'CS_PORT' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: suggested alternative: 'STM_PORT'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: error: 'CS_PIN' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: suggested alternative: 'SPI1'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: suggested alternative: 'PIN_LED'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: error: 'write16' was not declared in this scope
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: suggested alternative: 'write'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:170:5: error: 'setReadDir' was not declared in this scope
setReadDir();
^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:170:5: note: suggested alternative: 'seekdir'
setReadDir();
^~~~~~~~~~
seekdir
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: error: 'RD_PORT' was not declared in this scope
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: note: suggested alternative: 'STM_PORT'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: error: 'RD_PIN' was not declared in this scope
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: note: suggested alternative: 'STM_PIN'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: error: 'PIN_HIGH' was not declared in this scope
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: note: suggested alternative: 'HIGH'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:176:5: error: 'setWriteDir' was not declared in this scope
setWriteDir();
^~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:176:5: note: suggested alternative: 'setWriteError'
setWriteDir();
^~~~~~~~~~~
setWriteError
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In member function 'int16_t MCUFRIEND_kbv::readGRAM(int16_t, int16_t, uint16_t*, int16_t, int16_t)':
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: error: 'CS_PORT' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: suggested alternative: 'STM_PORT'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: error: 'CS_PIN' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: suggested alternative: 'SPI1'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: suggested alternative: 'PIN_LED'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
WriteCmd(_MR);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
WriteCmd(_MR);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
WriteCmd(_MR);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
WriteCmd(_MR);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: error: 'write16' was not declared in this scope
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: suggested alternative: 'write'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
WriteCmd(_MR);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
WriteCmd(_MR);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:312:9: error: 'setReadDir' was not declared in this scope
setReadDir();
^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:312:9: note: suggested alternative: 'seekdir'
setReadDir();
^~~~~~~~~~
seekdir
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:316:13: error: 'READ_8' was not declared in this scope
READ_8(r);
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:316:13: note: suggested alternative: 'PE_8'
READ_8(r);
^~~~~~
PE_8
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:318:13: error: 'READ_16' was not declared in this scope
READ_16(dummy);
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:318:13: note: suggested alternative: 'READ_REG'
READ_16(dummy);
^~~~~~~
READ_REG
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:320:26: error: 'READ_8' was not declared in this scope
if (_lcd_ID == 0x1511) READ_8(r); //extra dummy for R61511
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:320:26: note: suggested alternative: 'PE_8'
if (_lcd_ID == 0x1511) READ_8(r); //extra dummy for R61511
^~~~~~
PE_8
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:323:17: error: 'READ_8' was not declared in this scope
READ_8(r);
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:323:17: note: suggested alternative: 'PE_8'
READ_8(r);
^~~~~~
PE_8
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:331:17: error: 'READ_16' was not declared in this scope
READ_16(ret);
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:331:17: note: suggested alternative: 'READ_REG'
READ_16(ret);
^~~~~~~
READ_REG
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: error: 'RD_PORT' was not declared in this scope
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: note: suggested alternative: 'STM_PORT'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:29: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: error: 'RD_PIN' was not declared in this scope
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: note: suggested alternative: 'STM_PIN'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:38: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: error: 'PIN_HIGH' was not declared in this scope
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: note: suggested alternative: 'HIGH'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1217:20: note: in definition of macro 'RD_IDLE'
#define RD_IDLE PIN_HIGH(RD_PORT, RD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:352:9: error: 'setWriteDir' was not declared in this scope
setWriteDir();
^~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:352:9: note: suggested alternative: 'setWriteError'
setWriteDir();
^~~~~~~~~~~
setWriteError
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In member function 'virtual void MCUFRIEND_kbv::drawPixel(int16_t, int16_t, uint16_t)':
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: error: 'CS_PORT' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: suggested alternative: 'STM_PORT'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: error: 'CS_PIN' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: suggested alternative: 'SPI1'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: suggested alternative: 'PIN_LED'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:30: note: in expansion of macro 'WriteCmd'
if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:30: note: in expansion of macro 'WriteCmd'
if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:30: note: in expansion of macro 'WriteCmd'
if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:30: note: in expansion of macro 'WriteCmd'
if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: error: 'write16' was not declared in this scope
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: suggested alternative: 'write'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:30: note: in expansion of macro 'WriteCmd'
if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:30: note: in expansion of macro 'WriteCmd'
if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: error: 'PIN_HIGH' was not declared in this scope
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: suggested alternative: 'HIGH'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In member function 'virtual void MCUFRIEND_kbv::fillRect(int16_t, int16_t, int16_t, int16_t, uint16_t)':
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: error: 'CS_PORT' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: suggested alternative: 'STM_PORT'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: error: 'CS_PIN' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: suggested alternative: 'SPI1'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: suggested alternative: 'PIN_LED'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
WriteCmd(_MW);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
WriteCmd(_MW);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
WriteCmd(_MW);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
WriteCmd(_MW);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: error: 'write16' was not declared in this scope
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: suggested alternative: 'write'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
WriteCmd(_MW);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
WriteCmd(_MW);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:659:18: error: 'write8' was not declared in this scope
write8(r);
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:659:18: note: suggested alternative: 'write'
write8(r);
^~~~~~
write
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: error: 'write8' was not declared in this scope
write8(hi);
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: note: suggested alternative: 'write'
write8(hi);
^~~~~~
write
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: error: 'PIN_HIGH' was not declared in this scope
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: suggested alternative: 'HIGH'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'void pushColors_any(uint16_t, uint8_t*, int16_t, bool, uint8_t)':
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: error: 'CS_PORT' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: suggested alternative: 'STM_PORT'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: error: 'CS_PIN' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: suggested alternative: 'SPI1'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: suggested alternative: 'PIN_LED'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: error: 'write16' was not declared in this scope
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: suggested alternative: 'write24'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1240:36: note: in definition of macro 'WriteCmd'
#define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: error: 'write16' was not declared in this scope
write16(color);
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: suggested alternative: 'write24'
write16(color);
^~~~~~~
write24
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: error: 'write16' was not declared in this scope
write16(color);
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: suggested alternative: 'write24'
write16(color);
^~~~~~~
write24
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: error: 'PIN_HIGH' was not declared in this scope
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: suggested alternative: 'HIGH'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'void init_table(const void*, int16_t)':
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: error: 'CS_PORT' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: suggested alternative: 'STM_PORT'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:28: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: error: 'CS_PIN' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: suggested alternative: 'SPI1'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:37: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: suggested alternative: 'PIN_LED'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1225:20: note: in definition of macro 'CS_ACTIVE'
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: error: 'CD_PORT' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: suggested alternative: 'STM_PORT'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:28: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: error: 'CD_PIN' was not declared in this scope
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: suggested alternative: 'STM_PIN'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1222:37: note: in definition of macro 'CD_COMMAND'
#define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: error: 'write8' was not declared in this scope
write8(cmd);
^~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: suggested alternative: 'write'
write8(cmd);
^~~~~~
write
In file included from c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: error: 'PIN_HIGH' was not declared in this scope
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: suggested alternative: 'HIGH'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1223:20: note: in definition of macro 'CD_DATA'
#define CD_DATA PIN_HIGH(CD_PORT, CD_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: error: 'PIN_HIGH' was not declared in this scope
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: suggested alternative: 'HIGH'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^
c:\Users\name\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1226:20: note: in definition of macro 'CS_IDLE'
#define CS_IDLE PIN_HIGH(CS_PORT, CS_PIN)
^~~~~~~~

exit status 1

Compilation error: exit status 1

I was able to get LCD_ID_ReadReg working.

Read Registers on MCUFRIEND UNO shield controllers either read as single 16-bit e.g. the ID is at readReg(0) or as a sequence of 8-bit values in special locations (first is dummy)

reg(0x0000) 00 00 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00 Manufacturer ID
reg(0x0009) 09 09 09 09 09 Status Register
reg(0x000A) 0A 0A Get Power Mode
reg(0x000C) 08 08 Get Pixel Format
reg(0x0061) 21 21 RDID1 HX8347-G
reg(0x0062) 22 22 RDID2 HX8347-G
reg(0x0063) 23 23 RDID3 HX8347-G
reg(0x0064) 20 20 RDID1 HX8347-A
reg(0x0065) 21 21 RDID2 HX8347-A
reg(0x0066) 22 22 RDID3 HX8347-A
reg(0x0067) 23 23 RDID Himax HX8347-A
reg(0x0070) 20 20 Panel Himax HX8347-A
reg(0x00A1) A1 A1 A1 A1 A1 RD_DDB SSD1963
reg(0x00B0) A0 A0 RGB Interface Signal Control
reg(0x00B4) A0 A0 Inversion Control
reg(0x00B6) A2 A2 A2 A2 A2 Display Control
reg(0x00B7) A3 A3 Entry Mode Set
reg(0x00BF) AB AB AB AB AB AB ILI9481, HX8357-B
reg(0x00C0) 80 80 80 80 80 80 80 80 80 Panel Control
reg(0x00C8) 88 88 88 88 88 88 88 88 88 88 88 88 88 GAMMA
reg(0x00CC) 88 88 Panel Control
reg(0x00D0) 80 80 80 Power Control
reg(0x00D2) 82 82 82 82 82 NVM Read
reg(0x00D3) 83 83 83 83 ILI9341, ILI9488
reg(0x00D4) 80 80 80 80 Novatek ID
reg(0x00DA) 8A 8A RDID1
reg(0x00DB) 8B 8B RDID2
reg(0x00DC) 88 88 RDID3
reg(0x00E0) A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 GAMMA-P
reg(0x00E1) A1 A1 A1 A1 A1 A1 A1 A1 A1 A1 A1 A1 A1 A1 A1 A1 GAMMA-N
reg(0x00EF) AB AB AB AB AB AB ILI9327
reg(0x00F2) A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 Adjust Control 2
reg(0x00F6) A2 A2 A2 A2 Interface Control

Hi @jornedj ,

it looks as if your hardware is not supported by the mcufriend_shield library.

You can view the code here

https://github.com/prenticedavid/MCUFRIEND_kbv/blob/master/utility/mcufriend_shield.h

I searched the code for STM32H747 without success. If you know the required details of your controller you might be able to use either a compatible controller's defines (if applicable) or you could add the data for the STM32H747 in a local copy of the lib.

The support for STM32 controllers starts at line 685.

It works with UNO and MEGA because the required defines are available in the lib ...

Thank you very much for your quick response.

I had already looked in the library MCUFRIEND_shield.h, but couldn't solve the problem unfortunately. I have already tried modifying the library of the STM32H743xx controller, but to no avail (I got the same error message and have no idea why).

I know that the board uses an STM32H747XI controller. This controller uses a dual core (M4 and M7) and a CPU of 480 MHZ.

Use Bodmer TFT_eSPI. The controller stay in the supported controllers. Only SPI.

Thank you very much for your response. I have downloaded the library and the sample codes. Unfortunately, I am still getting error messages. I tried the example codes from the test and diagnostics folder ( to see if the screen shows anything), but the screen unfortunately shows a white screen only. The programme thinks the controller is using an RP2040 I think (and this I think is a Raspberry Pi controller).
I'm doing something wrong but can't really figure out what it is.

This is the error message what I am getting:

In file included from c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:31:0:
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c: In member function 'void TFT_eSPI::pushBlock(uint16_t, uint32_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:529:29: error: 'SPI_X' was not declared in this scope
     while (!spi_is_writable(SPI_X)){};
                             ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:529:29: note: suggested alternative: 'SPI_6'
     while (!spi_is_writable(SPI_X)){};
                             ^~~~~
                             SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:529:13: error: 'spi_is_writable' was not declared in this scope
     while (!spi_is_writable(SPI_X)){};
             ^~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:529:13: note: suggested alternative: 'spiwrite'
     while (!spi_is_writable(SPI_X)){};
             ^~~~~~~~~~~~~~~
             spiwrite
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:530:16: error: 'SPI_X' was not declared in this scope
     spi_get_hw(SPI_X)->dr = (uint32_t)color;
                ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:530:16: note: suggested alternative: 'SPI_6'
     spi_get_hw(SPI_X)->dr = (uint32_t)color;
                ^~~~~
                SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:530:5: error: 'spi_get_hw' was not declared in this scope
     spi_get_hw(SPI_X)->dr = (uint32_t)color;
     ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:530:5: note: suggested alternative: 'spi_begin'
     spi_get_hw(SPI_X)->dr = (uint32_t)color;
     ^~~~~~~~~~
     spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c: In member function 'void TFT_eSPI::pushPixels(const void*, uint32_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:543:31: error: 'SPI_X' was not declared in this scope
       while (!spi_is_writable(SPI_X)){};
                               ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:543:31: note: suggested alternative: 'SPI_6'
       while (!spi_is_writable(SPI_X)){};
                               ^~~~~
                               SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:543:15: error: 'spi_is_writable' was not declared in this scope
       while (!spi_is_writable(SPI_X)){};
               ^~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:543:15: note: suggested alternative: 'spiwrite'
       while (!spi_is_writable(SPI_X)){};
               ^~~~~~~~~~~~~~~
               spiwrite
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:544:18: error: 'SPI_X' was not declared in this scope
       spi_get_hw(SPI_X)->dr = (uint32_t)(*data++);
                  ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:544:18: note: suggested alternative: 'SPI_6'
       spi_get_hw(SPI_X)->dr = (uint32_t)(*data++);
                  ^~~~~
                  SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:544:7: error: 'spi_get_hw' was not declared in this scope
       spi_get_hw(SPI_X)->dr = (uint32_t)(*data++);
       ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:544:7: note: suggested alternative: 'spi_begin'
       spi_get_hw(SPI_X)->dr = (uint32_t)(*data++);
       ^~~~~~~~~~
       spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:553:31: error: 'SPI_X' was not declared in this scope
       while (!spi_is_writable(SPI_X)){};
                               ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:553:31: note: suggested alternative: 'SPI_6'
       while (!spi_is_writable(SPI_X)){};
                               ^~~~~
                               SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:553:15: error: 'spi_is_writable' was not declared in this scope
       while (!spi_is_writable(SPI_X)){};
               ^~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:553:15: note: suggested alternative: 'spiwrite'
       while (!spi_is_writable(SPI_X)){};
               ^~~~~~~~~~~~~~~
               spiwrite
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:554:18: error: 'SPI_X' was not declared in this scope
       spi_get_hw(SPI_X)->dr = (uint32_t)color;
                  ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:554:18: note: suggested alternative: 'SPI_6'
       spi_get_hw(SPI_X)->dr = (uint32_t)color;
                  ^~~~~
                  SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:554:7: error: 'spi_get_hw' was not declared in this scope
       spi_get_hw(SPI_X)->dr = (uint32_t)color;
       ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_RP2040.c:554:7: note: suggested alternative: 'spi_begin'
       spi_get_hw(SPI_X)->dr = (uint32_t)color;
       ^~~~~~~~~~
       spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::setWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3417:25: error: 'SPI_X' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                         ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3417:25: note: suggested alternative: 'SPI_6'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                         ^~~~~
                         SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3417:14: error: 'spi_get_hw' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
              ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3417:14: note: suggested alternative: 'spi_begin'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
              ^~~~~~~~~~
              spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3417:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3417:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:39: error: 'SPI_X' was not declared in this scope
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                       ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:39: note: suggested alternative: 'SPI_6'
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                       ^~~~~
                                       SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:28: error: 'spi_get_hw' was not declared in this scope
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                            ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:28: note: suggested alternative: 'spi_begin'
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                            ^~~~~~~~~~
                            spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:63: error: 'SPI_SSPCR0_DSS_LSB' was not declared in this scope
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                               ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:63: note: suggested alternative: 'SAI_xCR1_DS_0'
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                               ^~~~~~~~~~~~~~~~~~
                                                               SAI_xCR1_DS_0
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:83: error: 'SPI_SSPCR0_DSS_BITS' was not declared in this scope
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                                                   ^~~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:83: note: suggested alternative: 'SPI_CR1_SSI'
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                                                   ^~~~~~~~~~~~~~~~~~~
                                                                                   SPI_CR1_SSI
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3423:11: error: 'hw_write_masked' was not declared in this scope
           hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
           ^~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3428:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3428:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3435:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3435:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3439:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3439:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3446:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3446:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3450:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3450:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readAddrWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3520:21: error: 'SPI_X' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                     ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3520:21: note: suggested alternative: 'SPI_6'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                     ^~~~~
                     SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3520:10: error: 'spi_get_hw' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
          ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3520:10: note: suggested alternative: 'spi_begin'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
          ^~~~~~~~~~
          spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3520:34: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3520:34: note: suggested alternative: 'SPI_NSS_SOFT'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
                                  SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:31: error: 'SPI_X' was not declared in this scope
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                               ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:31: note: suggested alternative: 'SPI_6'
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                               ^~~~~
                               SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:20: error: 'spi_get_hw' was not declared in this scope
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                    ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:20: note: suggested alternative: 'spi_begin'
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                    ^~~~~~~~~~
                    spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:55: error: 'SPI_SSPCR0_DSS_LSB' was not declared in this scope
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                       ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:55: note: suggested alternative: 'SAI_xCR1_DS_0'
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                       ^~~~~~~~~~~~~~~~~~
                                                       SAI_xCR1_DS_0
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:75: error: 'SPI_SSPCR0_DSS_BITS' was not declared in this scope
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                                           ^~~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:75: note: suggested alternative: 'SPI_CR1_SSI'
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                                           ^~~~~~~~~~~~~~~~~~~
                                                                           SPI_CR1_SSI
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3522:3: error: 'hw_write_masked' was not declared in this scope
   hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
   ^~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3525:34: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3525:34: note: suggested alternative: 'SPI_NSS_SOFT'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
                                  SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3532:34: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3532:34: note: suggested alternative: 'SPI_NSS_SOFT'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
                                  SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3536:34: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3536:34: note: suggested alternative: 'SPI_NSS_SOFT'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
                                  SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3543:34: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3543:34: note: suggested alternative: 'SPI_NSS_SOFT'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
                                  SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3547:34: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3547:34: note: suggested alternative: 'SPI_NSS_SOFT'
   while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                  ^~~~~~~~~~~~~~~~~~
                                  SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3551:10: error: 'spi_is_readable' was not declared in this scope
   while (spi_is_readable(SPI_X)) (void)spi_get_hw(SPI_X)->dr;
          ^~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3551:10: note: suggested alternative: 'spi_end_read'
   while (spi_is_readable(SPI_X)) (void)spi_get_hw(SPI_X)->dr;
          ^~~~~~~~~~~~~~~
          spi_end_read
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3552:28: error: 'SPI_SSPICR_RORIC_BITS' was not declared in this scope
   spi_get_hw(SPI_X)->icr = SPI_SSPICR_RORIC_BITS;
                            ^~~~~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3552:28: note: suggested alternative: 'STM_PIN_OD_BITS'
   spi_get_hw(SPI_X)->icr = SPI_SSPICR_RORIC_BITS;
                            ^~~~~~~~~~~~~~~~~~~~~
                            STM_PIN_OD_BITS
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawPixel(int32_t, int32_t, uint32_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3639:23: error: 'SPI_X' was not declared in this scope
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                       ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3639:23: note: suggested alternative: 'SPI_6'
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                       ^~~~~
                       SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3639:12: error: 'spi_get_hw' was not declared in this scope
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
            ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3639:12: note: suggested alternative: 'spi_begin'
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
            ^~~~~~~~~~
            spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3639:36: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                    ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3639:36: note: suggested alternative: 'SPI_NSS_SOFT'
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                    ^~~~~~~~~~~~~~~~~~
                                    SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:35: error: 'SPI_X' was not declared in this scope
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                   ^~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:35: note: suggested alternative: 'SPI_6'
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                   ^~~~~
                                   SPI_6
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:24: error: 'spi_get_hw' was not declared in this scope
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                        ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:24: note: suggested alternative: 'spi_begin'
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                        ^~~~~~~~~~
                        spi_begin
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:59: error: 'SPI_SSPCR0_DSS_LSB' was not declared in this scope
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                           ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:59: note: suggested alternative: 'SAI_xCR1_DS_0'
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                           ^~~~~~~~~~~~~~~~~~
                                                           SAI_xCR1_DS_0
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:79: error: 'SPI_SSPCR0_DSS_BITS' was not declared in this scope
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                                               ^~~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:79: note: suggested alternative: 'SPI_CR1_SSI'
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
                                                                               ^~~~~~~~~~~~~~~~~~~
                                                                               SPI_CR1_SSI
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3644:7: error: 'hw_write_masked' was not declared in this scope
       hw_write_masked(&spi_get_hw(SPI_X)->cr0, (8 - 1) << SPI_SSPCR0_DSS_LSB, SPI_SSPCR0_DSS_BITS);
       ^~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3650:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS){};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3650:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS){};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3657:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3657:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3663:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3663:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3670:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3670:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3684:38: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3684:38: note: suggested alternative: 'SPI_NSS_SOFT'
       while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                      ^~~~~~~~~~~~~~~~~~
                                      SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3693:36: error: 'SPI_SSPSR_BSY_BITS' was not declared in this scope
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                    ^~~~~~~~~~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3693:36: note: suggested alternative: 'SPI_NSS_SOFT'
     while (spi_get_hw(SPI_X)->sr & SPI_SSPSR_BSY_BITS) {};
                                    ^~~~~~~~~~~~~~~~~~
                                    SPI_NSS_SOFT
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'int16_t TFT_eSPI::drawNumber(long int, int32_t, int32_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5773:3: error: 'ltoa' was not declared in this scope
   ltoa(long_num, str, 10);
   ^~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5773:3: note: suggested alternative: 'utoa'
   ltoa(long_num, str, 10);
   ^~~~
   utoa
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'int16_t TFT_eSPI::drawNumber(long int, int32_t, int32_t, uint8_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5781:3: error: 'ltoa' was not declared in this scope
   ltoa(long_num, str, 10);
   ^~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5781:3: note: suggested alternative: 'utoa'
   ltoa(long_num, str, 10);
   ^~~~
   utoa
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'int16_t TFT_eSPI::drawFloat(float, uint8_t, int32_t, int32_t, uint8_t)':
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5837:3: error: 'ltoa' was not declared in this scope
   ltoa(temp, str + ptr, 10);
   ^~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5837:3: note: suggested alternative: 'utoa'
   ltoa(temp, str + ptr, 10);
   ^~~~
   utoa

exit status 1

Compilation error: exit status 1

user_select_setup.h correct changed? uncomment //#include <User_Setups/Setup29_ILI9341_STM32.h> // Setup for Nucleo board all the other setup must be comment.

I think setup29 is a good one. Only comment #define ILI9341_DRIVER and uncomment //#define ILI9481_DRIVER (if you're dispaly has that controller).

Thanks again for the response. I had forgotten a /. Now I do have another error message in the library. I run the same code as before.

In file included from C:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\examples\Test and diagnostics\Colour_Test\Colour_Test.ino:53:0:
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master/TFT_eSPI.h:432:25: error: 'tft_width' was not declared in this scope
   TFT_eSPI(int16_t _W = tft_width, int16_t _H = tft_height);
                         ^~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master/TFT_eSPI.h:432:25: note: suggested alternative: '_width'
   TFT_eSPI(int16_t _W = tft_width, int16_t _H = tft_height);
                         ^~~~~~~~~
                         _width
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master/TFT_eSPI.h:432:49: error: 'tft_height' was not declared in this scope
   TFT_eSPI(int16_t _W = tft_width, int16_t _H = tft_height);
                                                 ^~~~~~~~~~
c:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master/TFT_eSPI.h:432:49: note: suggested alternative: '_height'
   TFT_eSPI(int16_t _W = tft_width, int16_t _H = tft_height);
                                                 ^~~~~~~~~~
                                                 _height
C:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\examples\Test and diagnostics\Colour_Test\Colour_Test.ino:55:25: error: call to 'TFT_eSPI::TFT_eSPI(int16_t, int16_t)' uses the default argument for parameter 1, which is not yet defined
 TFT_eSPI tft = TFT_eSPI();  // Invoke custom library
                         ^
C:\Users\name\Documents\Arduino\libraries\TFT_eSPI-master\examples\Test and diagnostics\Colour_Test\Colour_Test.ino:55:25: error: call to 'TFT_eSPI::TFT_eSPI(int16_t, int16_t)' uses the default argument for parameter 2, which is not yet defined

exit status 1

Compilation error: call to 'TFT_eSPI::TFT_eSPI(int16_t, int16_t)' uses the default argument for parameter 1, which is not yet defined

Can you post User_Setup_Select.h and the selected user_setup file?

It seems there is missing tft_height and tft_width. Normally they are defined in the correct driver file.

User_Setup_Select.h (17,0 KB)
User_Setup.h (18,2 KB)

Try these User_Setup_select.h
User_Setup_Select.h (17,0 KB)

and


        ///////////////////////////////////////////////////
        //  Setup for STM32 Nucleo and ILI9341 display   //
        ///////////////////////////////////////////////////
#define USER_SETUP_ID 29

// Last update by Bodmer: 28/11/19

// STM32 optimised functions are not yet compatible with STM32H743 processor.
// The STM32H743 does work with the slower generic processor drivers
//
// REMINDER - Nucleo-F743ZI and Nucleo-F743ZI2 have different pin port allocations
// and require appropriate selection in IDE. ^---- Note the extra 2 in part number!


// Define STM32 to invoke STM32 optimised driver
#define STM32

// Define the TFT display driver
//#define ILI9341_DRIVER
#define ILI9481_DRIVER

// MOSI and SCK do not need to be defined, connect:
//  - Arduino SCK  to TFT SCK
//  - Arduino MOSI to TFT SDI(may be marked SDA or MOSI)
// Typical Arduino SPI port 1 pins are (SCK=D13, MISO=D12, MOSI=D11) this is port pins PA5, PA6 and PA7 on Nucleo-F767ZI
//                 SPI port 2 pins are (SCK=D18, MISO=A7, MOSI=D17) this is port pins PB13, PC2 and PB15 on Nucleo-F767ZI

/*
#define TFT_SPI_PORT 1 // SPI 1 maximum clock rate is 55MHz
#define TFT_MOSI PA7
#define TFT_MISO PA6
#define TFT_SCLK PA5
//*/

/*
#define TFT_SPI_PORT 2 // SPI 2 maximum clock rate is 27MHz
#define TFT_MOSI D17
#define TFT_MISO A7
#define TFT_SCLK D18
//*/

/*
#define TFT_SPI_PORT 2 // SPI 2 maximum clock rate is 27MHz
#define TFT_MOSI PB15
#define TFT_MISO PC2
#define TFT_SCLK PB13
//*/

/*
#define TFT_SPI_PORT 2 // SPI 2 maximum clock rate is 27MHz
#define TFT_MOSI PB15
#define TFT_MISO PB14
#define TFT_SCLK PB13
//*/

// Can use Ardiuno pin references, arbitrary allocation, TFT_eSPI controls chip select
#define TFT_CS   D5 // Chip select control pin to TFT CS
#define TFT_DC   D6 // Data Command control pin to TFT DC (may be labelled RS = Register Select)
#define TFT_RST  D7 // Reset pin to TFT RST (or RESET)

// Alternatively, we can use STM32 port reference names PXnn
//#define TFT_CS   PE11 // Nucleo-F767ZI equivalent of D5
//#define TFT_DC   PE9  // Nucleo-F767ZI equivalent of D6
//#define TFT_RST  PF13 // Nucleo-F767ZI equivalent of D7

//#define TFT_RST  -1   // Set TFT_RST to -1 if the display RESET is connected to processor reset
                        // Use an Arduino pin for initial testing as connecting to processor reset
                        // may not work (pulse too short at power up?)

// Chip select for XPT2046 touch controller
#define TOUCH_CS D4

#define LOAD_GLCD   // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2  // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
#define LOAD_FONT4  // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
#define LOAD_FONT6  // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
#define LOAD_FONT7  // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-.
#define LOAD_FONT8  // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
#define LOAD_GFXFF  // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts

// STM32 support for smooth fonts via program memory (FLASH) arrays
#define SMOOTH_FONT


// Nucleo-F767ZI has a ~216MHZ CPU clock, this is divided by 4, 8, 16 etc

#define SPI_FREQUENCY  27000000   // 27MHz SPI clock
//#define SPI_FREQUENCY  55000000   // 55MHz is over-clocking ILI9341 but seems to work reliably!

#define SPI_READ_FREQUENCY  15000000 // Reads need a slower SPI clock, probably ends up at 13.75MHz (CPU clock/16)

#define SPI_TOUCH_FREQUENCY  2500000 // Must be very slow

// This has no effect, transactions for STM32 are automatically enabled
#define SUPPORT_TRANSACTIONS

as Setup29_ILI9341_STM32.h

Thank you very much for your quick response. I put the user_setup_select.h in the library and modified the Setup29_ILI9341_STM32.h to the code what you created. Unfortunately, I am now getting an error message again.

Can you please help me?

In file included from C:【Record.arduinoIDE-unsaved202392-10064-8rt0zo.v6r2_Colour_Test_Colour_Test.ino:53:0:
c:arduinoIDE-unsaved202392-10064-8rt0zo.h:969:8: error: #error >>>>------>> Touch functions not supported in 8/16 bit parallel mode or with RP2040 PIO.
       #error >>>>------>> Touch functions not supported in 8/16 bit parallel mode or with RP2040 PIO.
        ^~~~~
<code/>
exit status 1

Compilation error: exit status 1

Make

to

#define TOUCH_CS -1