I am currently trying to run some existing examples for the 3.5" TFT LCD (ILI9486) (3.5inch Arduino Display-UNO - LCD wiki) And tried the library on that forum and the MCUFRIEND_kbv library and i can't get either of them running. I tested both for my old Uno (328p) and it works fine but compiling for the Uno R4 get all kinds of errors. When trying out official R4 Wifi examples from the IDE (ex. TFTDisplayText.ino from category TFT) it also errors out because of missing avr dependency (thats obvious).
Does anybody got a tip for me how to get this display running on the Uno R4?
ALL KINDS? That would be a pretty massive error listing.
Please copy and paste the entire error messages in a new message.
some existing examples
Links, please?
When using MCUFRIEND_kbv (MCUFRIEND_kbv - Arduino Reference):
This is just a short version, there are too much errors for the ide console to show.
This happens for all included examples
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\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: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: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\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:125:9: error: 'write8' was not declared in this scope
write8(u8);
^~~~~~
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: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: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: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\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: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: In function 'uint16_t read16bits()':
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:154:5: error: 'READ_8' was not declared in this scope
READ_8(ret);
^~~~~~
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 'uint16_t MCUFRIEND_kbv::readReg(uint16_t, int8_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\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\utility/mcufriend_shield.h:1215:20: error: 'PIN_LOW' was not declared in this scope
#define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
^
When using the lcdwiki library:
Happens for all included examples
C:\Users\semod\Documents\Arduino\libraries\LCDWIKI_KBV\LCDWIKI_KBV.cpp:15:10: fatal error: wiring_private.h: No such file or directory
#include "wiring_private.h"
^~~~~~~~~~~~~~~~~~
There is no wiring_private.h file inside the library, i have no clue why the library imports it when it's not existent. But compiling the same file for Uno works fine
In the IDE File->Examples->(Examples for Arduino Uno R4 Wifi) TFT->Adruino->TFTDisplayText
But that will not work because is depends on avr
I don't think so, at least I've never experienced that. Did you use the copy button in the IDE window?
In the IDE File->Examples->(Examples for Arduino Uno R4 Wifi) TFT->Adruino->TFTDisplayText
That link is not helpful for us, because it is only visible if you are running the IDE and have the library installed locally..
The console and the copy function only get the last 1000 lines everything above will be overwritten, i checked that.
All output i get is:
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:121: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:121: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:121: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:122:5: 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:122:5: 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:122:5: 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:122:5: 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:122:5: 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:122:5: 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:122:5: 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:122:5: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:125:9: error: 'write8' was not declared in this scope
write8(u8);
^~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:125:9: note: suggested alternative: 'write24'
write8(u8);
^~~~~~
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: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:128:13: 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:128:13: 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:128:13: 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:128:13: 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:128:13: 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:128:13: 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:128:13: 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:128:13: note: in expansion of macro 'WriteCmd'
WriteCmd(cmd);
^~~~~~~~
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:131: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:131:5: note: in expansion of macro 'CS_IDLE'
CS_IDLE;
^~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'uint16_t read16bits()':
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:154:5: error: 'READ_8' was not declared in this scope
READ_8(ret);
^~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:154:5: note: suggested alternative: 'READ_BGR'
READ_8(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\MCUFRIEND_kbv.cpp: In member function 'uint16_t MCUFRIEND_kbv::readReg(uint16_t, int8_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:168: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:168: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:168: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:168: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:168: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:168: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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
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:169:5: note: in expansion of macro 'WriteCmd'
WriteCmd(reg);
^~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:170:5: error: 'setReadDir' was not declared in this scope
setReadDir();
^~~~~~~~~~
C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:170:5: note: suggested alternative: 'bitRead'
setReadDir();
^~~~~~~~~~
bitRead
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:174:5: 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: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;
^~~~~~~
Bibliothek SPI im Ordner: C:\Users\semod\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.2\libraries\SPI (veraltet) wird verwendet
Bibliothek Adafruit GFX Library in Version 1.11.7 im Ordner: C:\Users\semod\Documents\Arduino\libraries\Adafruit_GFX_Library wird verwendet
Bibliothek Adafruit BusIO in Version 1.14.1 im Ordner: C:\Users\semod\Documents\Arduino\libraries\Adafruit_BusIO wird verwendet
Bibliothek Wire im Ordner: C:\Users\semod\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.2\libraries\Wire (veraltet) wird verwendet
Bibliothek MCUFRIEND_kbv in Version 3.0.0-Release im Ordner: C:\Users\semod\Documents\Arduino\libraries\MCUFRIEND_kbv wird verwendet
exit status 1
Compilation error: exit status 1
That is just an example that is probably not updated. And i could not find any online resource for that example
Doubt it. It looks like a built in IDE example. Although, they mis-spelled "Arduino" so maybe no. One thing, the library author really know their stuff, and helps out here a lot on display issues.
Likely, it clashes with the core written for the R4.
The mis-spelling was on my side, sorry for that but that TFTDisplayText.ino example is from 2013 and includes the TFT.h which is not compatible with the newer renesas architecture because it depends on avr. And i just tested, that the code compiles for the Uno but is not working with my LCD display, so i have to get either the MCUFRIEND_kbv library or the LCDWIKI library working.
I checkd the source code for both and played around with some modifications but didn't came far.
Especially the MCUFRIEND_kbv library checks for definitions like "AVR_ATmega328P" and then sets some definitions. My guess is that the library is missing some definition for the Uno R4 but i could'nt figure out what the compiler sets when compiling for the R4. Then i could maybe add those missing definitions. They look like this for the Uno from this file https://github.com/prenticedavid/MCUFRIEND_kbv/blob/master/utility/mcufriend_shield.h:
//################################### UNO ##############################
#elif defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328PB__) //regular UNO shield on UNO
//LCD pins |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | |RD |WR |RS |CS |RST|
//AVR pin |PD7|PD6|PD5|PD4|PD3|PD2|PB1|PB0| |PC0|PC1|PC2|PC3|PC4|
//UNO pins |7 |6 |5 |4 |3 |2 |9 |8 | |A0 |A1 |A2 |A3 |A4 |
#define RD_PORT PORTC
#define RD_PIN 0
#define WR_PORT PORTC
#define WR_PIN 1
#define CD_PORT PORTC
#define CD_PIN 2
#define CS_PORT PORTC
#define CS_PIN 3
#define RESET_PORT PORTC
#define RESET_PIN 4
#define BMASK 0x03 //more intuitive style for mixed Ports
#define DMASK 0xFC //does exactly the same as previous
#define write_8(x) { PORTB = (PORTB & ~BMASK) | ((x) & BMASK); PORTD = (PORTD & ~DMASK) | ((x) & DMASK); }
#define read_8() ( (PINB & BMASK) | (PIND & DMASK) )
#define setWriteDir() { DDRB |= BMASK; DDRD |= DMASK; }
#define setReadDir() { DDRB &= ~BMASK; DDRD &= ~DMASK; }
#define write8(x) { write_8(x); WR_STROBE; }
#define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
#define READ_8(dst) { RD_STROBE; dst = read_8(); RD_IDLE; }
#define READ_16(dst) { uint8_t hi; READ_8(hi); READ_8(dst); dst |= (hi << 8); }
#define PIN_LOW(p, b) (p) &= ~(1<<(b))
#define PIN_HIGH(p, b) (p) |= (1<<(b))
#define PIN_OUTPUT(p, b) *(&p-1) |= (1<<(b))
I already tried to copy the same values on the end of the elif check to use those values for every unknown device but that did not work. The errors were different but also were very long.
Take a look at this post: https://forum.arduino.cc/t/support-mcufriend-uno-tft-shield-on-uno-r4/1151857/1
With some look at the source code and some tinkering i got it to work!
Using those for initialisation, especially if your characters are mirrored/flipped (the "1" after "A4" does the trick for rotation)
Arduino_DataBus *bus = new Arduino_UNOPAR8(A2, A3, A1, A0);
Arduino_GFX *gfx = new Arduino_ILI9486(bus, A4, 1);
Im curious how the performance for drawing compared to the r3 is
Would you be able to run the mcufriend performance test and compare the two?
ILI9341 8bit parallel MCUFriend shield on Arduino UNO R4
Arduino_GFX library Test!
Benchmark micro-secs
Screen fill 661074
Text 97815
Pixels 2116428
Lines 1959471
Horiz/Vert Lines 83739
Rectangles (filled) 2101978
Rectangles (outline) 53820
Triangles (filled) 702913
Triangles (outline) 113831
Circles (filled) 280962
Circles (outline) 167004
Arcs (filled) 161602
Arcs (outline) 276487
Rounded rects (filled) 2115867
Rounded rects (outline) 110390
Done!
ILI9341 8bit parallel MCUFriend shield on Arduino UNO R3
Arduino_GFX library Test!
Benchmark micro-secs
Screen fill 1342732
Text 592812
Pixels 5045952
Lines 7084120
Horiz/Vert Lines 146888
Rectangles (filled) 3611940
Rectangles (outline) 99272
Triangles (filled) 1519744
Triangles (outline) 393616
Circles (filled) 614660
Circles (outline) 503588
Arcs (filled) 1296044
Arcs (outline) 3278772
Rounded rects (filled) 3697044
Rounded rects (outline) 300440
Done!
-jz-
Mate you legend. That is insanely faster!
and for comparison:
ILI9341 8bit parallel MCUFriend shield on Arduino UNO R4 - using digitalWrite
Arduino_GFX library Test!
Benchmark micro-secs
Screen fill 4226216
Text 392858
Pixels 6037955
Lines 7024794
Horiz/Vert Lines 506499
Rectangles (filled) 12886744
Rectangles (outline) 322629
Triangles (filled) 4069377
Triangles (outline) 427594
Circles (filled) 1403337
Circles (outline) 524919
Arcs (filled) 572132
Arcs (outline) 650660
Rounded rects (filled) 13149608
Rounded rects (outline) 486717
Done!
using:
#include "Arduino_UNOPAR8.h"
#undef ARDUINO_UNOR4_WIFI
// for MCUFriend UNO kind of shields. -jz-
this is worse than I expected!
-jz-
ZinggJM has already answered that. But maybe to add to that, I have created a fork of MCUFRIEND that has a fallback to standard Arduino I/O if the MCU is not found.
It is slow but works an the UNO R4 Minima with a parallel interface. Only one file is different from the master mcufriend_shield.h. It has the code
#define RD_PORT 0
#define RD_PIN A0
#define WR_PORT 0
#define WR_PIN A1
#define CD_PORT 0
#define CD_PIN A2
#define CS_PORT 0
#define CS_PIN A3
#define RESET_PORT 0
#define RESET_PIN A4
#define write_8(x) { digitalWrite(8, (x&0b00000001)); \
digitalWrite(9, (x&0b00000010)>>1); \
digitalWrite(2, (x&0b00000100)>>2); \
digitalWrite(3, (x&0b00001000)>>3); \
digitalWrite(4, (x&0b00010000)>>4); \
digitalWrite(5, (x&0b00100000)>>5); \
digitalWrite(6, (x&0b01000000)>>6); \
digitalWrite(7, (x&0b10000000)>>7); \
}
#define read_8() ( digitalRead(8)|(digitalRead(9)<<1)|(digitalRead(2)<<2)|(digitalRead(3)<<3)|(digitalRead(4)<<4)| \
(digitalRead(5)<<5)|(digitalRead(6)<<6)|(digitalRead(7)<<7) )
#define setWriteDir() { pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(2, OUTPUT); pinMode(3, OUTPUT); \
pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); }
#define setReadDir() { pinMode(8, INPUT); pinMode(9, INPUT); pinMode(2, INPUT); pinMode(3, INPUT); \
pinMode(4, INPUT); pinMode(5, INPUT); pinMode(6, INPUT); pinMode(7, INPUT); }
#define write8(x) { write_8(x); WR_STROBE; }
#define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
#define READ_8(dst) { RD_STROBE; dst = read_8(); RD_IDLE; }
#define READ_16(dst) { uint8_t hi; READ_8(hi); READ_8(dst); dst |= (hi << 8); }
#define PIN_LOW(p, b) digitalWrite(b, 0)
#define PIN_HIGH(p, b) digitalWrite(b, 1)
#define PIN_OUTPUT(p, b) pinMode(b, OUTPUT)
where MCUFRIEND normally throws an error that the MCU is not known.
I now also added the port macro code for R4 to mcufriend_shield. This speeds up by a factor of three. Both changes are committed to my copy of the MCUFRIEND_kbv repo.
How long a graphictest_kbv sketch is running in 240x320 screen?
I did not try. I just tested with my BASIC interpreter and the graphics library in it. With this I can compare different platforms. The MCUFRIEND for R4 runs about the same speed as with a MEGA. This is to be expected as the parallel port speed of the display is the limiting factor.
ANd, I have no 240 to 320. Only the 5 inch.
Thank you
Im using a tft on my mega pro mini but on my pcb ive got the d2 to d7 pins connected to d24 to d29 using mcufriend.
It runs about the same as uno r3 now where as before was running a good 3 times slower.
Not entirely sure why as per one of david prentices posts its because the mega is doing software mappijg for the pinouts when using d2 to d7