prenticedavid / MCUFRIEND_kbv

MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields
Other
363 stars 181 forks source link

Won't compile on Uno R4 Wifi #239

Open git-eri opened 1 year ago

git-eri commented 1 year ago

Tried compiling some examples for Arduino R4 Wifi but it errors out. Same setup working for standart Uno. Any help on getting this library to work on R4 Wifi is appreciated. It seems likje every example errors out this way.

Here are the errors:

...
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:174:5: note: in expansion of macro 'RD_IDLE'
     RD_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:38: error: 'RD_PIN' was not declared in this scope
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                                      ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:174:5: note: in expansion of macro 'RD_IDLE'
     RD_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:38: note: suggested alternative: 'R_PFS'
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                                      ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:174:5: note: in expansion of macro 'RD_IDLE'
     RD_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:20: error: 'PIN_HIGH' was not declared in this scope
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:174:5: note: in expansion of macro 'RD_IDLE'
     RD_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:20: note: suggested alternative: 'PIN_MISO'
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:174:5: note: in expansion of macro 'RD_IDLE'
     RD_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:176:5: error: 'setWriteDir' was not declared in this scope
     setWriteDir();
     ^~~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:176:5: note: suggested alternative: 'setWriteError'
     setWriteDir();
     ^~~~~~~~~~~
     setWriteError
In file included from C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'CS_PORT' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:310:9: note: in expansion of macro 'CS_ACTIVE'
         CS_ACTIVE;
         ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: note: suggested alternative: 'R_PORT0'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:310:9: note: in expansion of macro 'CS_ACTIVE'
         CS_ACTIVE;
         ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'CS_PIN' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:310:9: note: in expansion of macro 'CS_ACTIVE'
         CS_ACTIVE;
         ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: note: suggested alternative: 'SPI'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:310:9: note: in expansion of macro 'CS_ACTIVE'
         CS_ACTIVE;
         ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: error: 'PIN_LOW' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:310:9: note: in expansion of macro 'CS_ACTIVE'
         CS_ACTIVE;
         ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: note: suggested alternative: 'PIN_LED'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:310:9: note: in expansion of macro 'CS_ACTIVE'
         CS_ACTIVE;
         ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: error: 'CD_PORT' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: note: suggested alternative: 'R_PORT0'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: error: 'CD_PIN' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: note: suggested alternative: 'M_PI'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: error: 'write16' was not declared in this scope
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: note: suggested alternative: 'write'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: error: 'PIN_HIGH' was not declared in this scope
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: note: suggested alternative: 'PIN_MISO'
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:311:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(_MR);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:312:9: error: 'setReadDir' was not declared in this scope
         setReadDir();
         ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:312:9: note: suggested alternative: 'bitRead'
         setReadDir();
         ^~~~~~~~~~
         bitRead
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:316:13: error: 'READ_8' was not declared in this scope
             READ_8(r);
             ^~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:316:13: note: suggested alternative: 'READ_BGR'
             READ_8(r);
             ^~~~~~
             READ_BGR
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:318:13: error: 'READ_16' was not declared in this scope
             READ_16(dummy);
             ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:318:13: note: suggested alternative: 'READ_BGR'
             READ_16(dummy);
             ^~~~~~~
             READ_BGR
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:320:26: note: suggested alternative: 'READ_BGR'
   if (_lcd_ID == 0x1511) READ_8(r);   //extra dummy for R61511
                          ^~~~~~
                          READ_BGR
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:323:17: error: 'READ_8' was not declared in this scope
                 READ_8(r);
                 ^~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:323:17: note: suggested alternative: 'READ_BGR'
                 READ_8(r);
                 ^~~~~~
                 READ_BGR
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:331:17: error: 'READ_16' was not declared in this scope
                 READ_16(ret);
                 ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:331:17: note: suggested alternative: 'READ_BGR'
                 READ_16(ret);
                 ^~~~~~~
                 READ_BGR
In file included from C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:29: error: 'RD_PORT' was not declared in this scope
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                             ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:350:9: note: in expansion of macro 'RD_IDLE'
         RD_IDLE;
         ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:29: note: suggested alternative: 'R_PORT0'
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                             ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:350:9: note: in expansion of macro 'RD_IDLE'
         RD_IDLE;
         ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:38: error: 'RD_PIN' was not declared in this scope
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                                      ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:350:9: note: in expansion of macro 'RD_IDLE'
         RD_IDLE;
         ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:38: note: suggested alternative: 'R_PFS'
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                                      ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:350:9: note: in expansion of macro 'RD_IDLE'
         RD_IDLE;
         ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:20: error: 'PIN_HIGH' was not declared in this scope
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:350:9: note: in expansion of macro 'RD_IDLE'
         RD_IDLE;
         ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1207:20: note: suggested alternative: 'PIN_MISO'
 #define RD_IDLE    PIN_HIGH(RD_PORT, RD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:350:9: note: in expansion of macro 'RD_IDLE'
         RD_IDLE;
         ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:352:9: error: 'setWriteDir' was not declared in this scope
         setWriteDir();
         ^~~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:352:9: note: suggested alternative: 'setWriteError'
         setWriteDir();
         ^~~~~~~~~~~
         setWriteError
In file included from C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In member function 'virtual void MCUFRIEND_kbv::drawPixel(int16_t, int16_t, uint16_t)':
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'CS_PORT' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:19: note: in expansion of macro 'CS_ACTIVE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                   ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: note: suggested alternative: 'R_PORT0'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:19: note: in expansion of macro 'CS_ACTIVE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                   ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'CS_PIN' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:19: note: in expansion of macro 'CS_ACTIVE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                   ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: note: suggested alternative: 'SPI'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:19: note: in expansion of macro 'CS_ACTIVE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                   ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: error: 'PIN_LOW' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:19: note: in expansion of macro 'CS_ACTIVE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                   ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: note: suggested alternative: 'PIN_LED'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:19: note: in expansion of macro 'CS_ACTIVE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                   ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: error: 'CD_PORT' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: note: suggested alternative: 'R_PORT0'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: error: 'CD_PIN' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: note: suggested alternative: 'M_PI'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: error: 'write16' was not declared in this scope
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: note: suggested alternative: 'write'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: error: 'PIN_HIGH' was not declared in this scope
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: note: suggested alternative: 'PIN_MISO'
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: error: 'PIN_HIGH' was not declared in this scope
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:61: note: in expansion of macro 'CS_IDLE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                                                             ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: note: suggested alternative: 'PIN_MISO'
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:541:61: note: in expansion of macro 'CS_IDLE'
     if (is9797) { CS_ACTIVE; WriteCmd(_MW); write24(color); CS_IDLE;} else
                                                             ^~~~~~~
C:\Users\semod\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\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'CS_PORT' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:615:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: note: suggested alternative: 'R_PORT0'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:615:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'CS_PIN' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:615:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: note: suggested alternative: 'SPI'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:615:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: error: 'PIN_LOW' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:615:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: note: suggested alternative: 'PIN_LED'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:615:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: error: 'CD_PORT' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: note: suggested alternative: 'R_PORT0'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: error: 'CD_PIN' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: note: suggested alternative: 'M_PI'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: error: 'write16' was not declared in this scope
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: note: suggested alternative: 'write'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: error: 'PIN_HIGH' was not declared in this scope
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: note: suggested alternative: 'PIN_MISO'
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:616:5: note: in expansion of macro 'WriteCmd'
     WriteCmd(_MW);
     ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:659:18: error: 'write8' was not declared in this scope
                  write8(r);
                  ^~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:659:18: note: suggested alternative: 'write'
                  write8(r);
                  ^~~~~~
                  write
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: error: 'write8' was not declared in this scope
             write8(hi);
             ^~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: note: suggested alternative: 'write'
             write8(hi);
             ^~~~~~
             write
In file included from C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: error: 'PIN_HIGH' was not declared in this scope
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:671:5: note: in expansion of macro 'CS_IDLE'
     CS_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: note: suggested alternative: 'PIN_MISO'
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:671:5: note: in expansion of macro 'CS_IDLE'
     CS_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'void pushColors_any(uint16_t, uint8_t*, int16_t, bool, uint8_t)':
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'CS_PORT' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: note: suggested alternative: 'R_PORT0'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'CS_PIN' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: note: suggested alternative: 'SPI'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: error: 'PIN_LOW' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: note: suggested alternative: 'PIN_LED'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
     CS_ACTIVE;
     ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: error: 'CD_PORT' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: note: suggested alternative: 'R_PORT0'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: error: 'CD_PIN' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: note: suggested alternative: 'M_PI'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:24: note: in expansion of macro 'CD_COMMAND'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                        ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: error: 'write16' was not declared in this scope
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:36: note: suggested alternative: 'write24'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: error: 'PIN_HIGH' was not declared in this scope
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: note: suggested alternative: 'PIN_MISO'
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1230:48: note: in expansion of macro 'CD_DATA'
 #define WriteCmd(x)  { CD_COMMAND; write16(x); CD_DATA; }
                                                ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
         WriteCmd(cmd);
         ^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: error: 'write16' was not declared in this scope
             write16(color);
             ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: suggested alternative: 'write24'
             write16(color);
             ^~~~~~~
             write24
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: error: 'write16' was not declared in this scope
         write16(color);
         ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: suggested alternative: 'write24'
         write16(color);
         ^~~~~~~
         write24
In file included from C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: error: 'PIN_HIGH' was not declared in this scope
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:710:5: note: in expansion of macro 'CS_IDLE'
     CS_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: note: suggested alternative: 'PIN_MISO'
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:710:5: note: in expansion of macro 'CS_IDLE'
     CS_IDLE;
     ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'void init_table(const void*, int16_t)':
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'CS_PORT' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
             CS_ACTIVE;
             ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: note: suggested alternative: 'R_PORT0'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
             CS_ACTIVE;
             ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'CS_PIN' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
             CS_ACTIVE;
             ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: note: suggested alternative: 'SPI'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
             CS_ACTIVE;
             ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: error: 'PIN_LOW' was not declared in this scope
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
             CS_ACTIVE;
             ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:20: note: suggested alternative: 'PIN_LED'
 #define CS_ACTIVE  PIN_LOW(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
             CS_ACTIVE;
             ^~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: error: 'CD_PORT' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:876:13: note: in expansion of macro 'CD_COMMAND'
             CD_COMMAND;
             ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:28: note: suggested alternative: 'R_PORT0'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                            ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:876:13: note: in expansion of macro 'CD_COMMAND'
             CD_COMMAND;
             ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: error: 'CD_PIN' was not declared in this scope
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:876:13: note: in expansion of macro 'CD_COMMAND'
             CD_COMMAND;
             ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1212:37: note: suggested alternative: 'M_PI'
 #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
                                     ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:876:13: note: in expansion of macro 'CD_COMMAND'
             CD_COMMAND;
             ^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: error: 'write8' was not declared in this scope
             write8(cmd);
             ^~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: suggested alternative: 'write24'
             write8(cmd);
             ^~~~~~
             write24
In file included from C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38:0:
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: error: 'PIN_HIGH' was not declared in this scope
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:880:17: note: in expansion of macro 'CD_DATA'
                 CD_DATA;
                 ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1213:20: note: suggested alternative: 'PIN_MISO'
 #define CD_DATA    PIN_HIGH(CD_PORT, CD_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:880:17: note: in expansion of macro 'CD_DATA'
                 CD_DATA;
                 ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: error: 'PIN_HIGH' was not declared in this scope
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:888:13: note: in expansion of macro 'CS_IDLE'
             CS_IDLE;
             ^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:20: note: suggested alternative: 'PIN_MISO'
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:888:13: note: in expansion of macro 'CS_IDLE'
             CS_IDLE;
             ^~~~~~~

exit status 1

Compilation error: exit status 1

I suspect that there is no support for that type of Arduino Uno. I hope i could get some help with that since i would like to run my ILI9486 display using that Uno R4 Wifi

AdriaBergeAguilar commented 1 year ago

I have the same problem, and if I put the library in an arduino uno rev3 or lower, it fills up the entire memory (98%) and I have no space left for my programming. Is there a plan to fix this problem?

FrightRisk commented 1 year ago

It is very unfortunate that Arduino chose to name this board an "Uno" and use R4 which leads people to think it is just the latest version of an Uno after R3. This is causing undue confusion and support issues for developers. This board uses a completely different processor than an Uno and is incompatible with a lot of libraries what would have to be written. It is about as far apart as a PC is to a Mac. You would have to port this yourself or wait for someone to add support for the R4. In addition, it uses some valuable memory for a hardware function, so may have even LESS available memory than a real Uno, especially if you intend to add WiFi support to a sketch. If you need more memory, use a Mega.

benridler commented 11 months ago

Give this fork, https://github.com/slviajero/MCUFRIEND_kbv/tree/master, a try, @slviajero has forked this repo and updated the definitions to support R4 boards. You'll need to download it manually and add the library as a zip. They have also opened an MR on this repo, which is awaiting reviews https://github.com/prenticedavid/MCUFRIEND_kbv/pull/240.

andreatoninelli commented 7 months ago

@benridler Thanks for it, works!