#include <SPI.h> // including SPI header file
#include "Adafruit_GFX.h" // Core Graphics Library
#include <MCUFRIEND_kbv.h> // including MCU friend KBV library
MCUFRIEND_kbv tft; // Instantiating "tft" as an object
float value_ecg = PA0;
int r_ac, r_dc, ir_ac, ir_dc, sensor_ir_ac, sensor_ir_dc, sensor_r_ac, sensor_r_dc, sensor_ecg;
float ir_avg_ecg = 0;
float ir_avg_temp = 0;
float ir_avg_temp_ecg = 0;
float max_ecg = 0;
float ecg;
float ir_max_ac_temp = 0;
int i, j;
int samples = 7;
float r_ac_float, r_dc_float, ir_ac_float, ir_dc_float, r_ratio , ir_ratio , R , spo;
int temp_j = 0;
int flag = 0;
int c;
int p = 0;
int temp_j_ecg = 0;
int flag_ecg = 0;
int c_ecg;
int p_ecg = 0;
float first_millis, second_millis, first_millis_temp, timer; // The time instants of first peak value and the adjacent peak values of PPG(IR signal) respectively
float duration_temp = 0; // The diferrence of second millis and first millis for every sample
float duration = 0; // Final average value for time duration between two consiquitive heart beats according tot PPG
float duration_temp_temp = 0;
float first_millis_ecg, second_millis_ecg, first_millis_temp_ecg, timer_ecg; // The time instants of first peak value and the adjacent peak values of PPG(IR signal) respectively
float duration_temp_ecg = 0; // The diferrence of second millis and first millis for every sample
float duration_ecg = 0; // Final average value for time duration between two consiquitive heart beats according tot PPG
float duration_temp_temp_ecg = 0;
float heart_rate; // heart rate according to PPG
float freq;
float heart_rate_ecg; // heart rate according to PPG
float freq_ecg;
int xPos = 20, xPosPrev = 20;
// Resetting position for the PPG plot and storing the current horizontal postion of pixel for current voltage level of IR value (PPG plot)
int xPos_ecg = 20, xPosPrev_ecg = 20;
// Resetting position for the ECG plot and storing the current horizontal postion of pixel for current voltage level of IR value (ECG plot)
int graphHeightPrev_ecg = 0; // storing the current vertical postion of pixel for current voltage level(ECG plot)
double flag_display = 0; // for signifying that plot has reached to the end of display first time
// Colors
#define BLACK 0x0000
#define NAVY 0x000F
#define DARKGREEN 0x03E0
#define DARKCYAN 0x03EF
#define MAROON 0x7800
#define PURPLE 0x780F
#define OLIVE 0x7BE0
#define LIGHTGREY 0xC618
#define DARKGREY 0x7BEF
#define BLUE 0x001F
#define GREEN 0x07E0
#define CYAN 0x07FF
#define RED 0xF800
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
#define ORANGE 0xFD20
#define GREENYELLOW 0xAFE5
#define PINK 0xF81F
void setup() {
Serial.begin(115200);
delay(2000);
pinMode(value_ecg, INPUT);
uint16_t ID = tft.readID();
tft.begin(ID);
tft.fillScreen(BLACK);
}
void loop() {
tft.setRotation(1);
tft.setCursor(180, 2);
tft.setTextColor(GREEN);
tft.setTextSize(2);
tft.println("Oxymeter");
tft.setCursor(5, 20);
tft.setTextColor(CYAN);
tft.print("Heart rate(BPM): ");
c = 0;
flag = 0;
temp_j = 0;
timer = 0;
//ir_avg = 0;
ir_avg_temp = 0;
first_millis = 0;
second_millis = 0;
first_millis_temp = 0;
duration = 0;
max_ecg = 0;
flag_ecg = 0;
first_millis_ecg = 0;
first_millis_temp_ecg = 0;
duration_ecg = 0;
for (i = 1; i <= samples; i++)
{
flag = 0;
for (j = 1; j < 99; j++)
{
ecg = analogRead(value_ecg);
if (ecg > max_ecg)
{
max_ecg = ecg;
first_millis_ecg = millis();
}
sensor_ecg = ecg;
if (flag_display >= 1)
{
tft.fillRoundRect(xPos, 80, 5, (tft.height() - 0), 2, BLACK);
}
int graphHeight_ecg = map(sensor_ecg, 200, 1023, 100, (tft.height()));
tft.drawLine(xPosPrev, (tft.height() - graphHeightPrev_ecg) , xPos, (tft.height() - graphHeight_ecg), GREEN);
graphHeightPrev_ecg = graphHeight_ecg;
if (xPos >= 480) {
xPos = 20;
xPosPrev = 20;
flag_display = flag_display + 1;
}
else {
xPosPrev = xPos;
xPos++;
}
}
ir_avg_temp_ecg = ir_avg_temp_ecg + max_ecg;
duration_temp_temp_ecg = duration_temp_ecg;
duration_temp_ecg = first_millis_ecg - first_millis_temp_ecg;
duration_temp_temp = duration_temp;
duration_temp = first_millis - first_millis_temp;
duration = duration + duration_temp;
duration_ecg = duration_ecg + duration_temp_ecg;
first_millis_temp = first_millis;
first_millis_temp_ecg = first_millis_ecg;
}
ir_avg_ecg = ir_avg_temp_ecg / samples;
freq = duration / ((samples - c) * 1000);
heart_rate = (1 / freq) * 60;
freq_ecg = duration_ecg / ((samples - c_ecg) * 1000);
heart_rate_ecg = (1 / freq_ecg) * 60;
tft.fillRoundRect(0, 45, 480, 30, 2, BLACK);
tft.setCursor(5, 45);
if (heart_rate_ecg < 60)
{
tft.setTextColor(YELLOW);
}
else {
tft.setTextColor(GREEN);
}
tft.print((int) heart_rate_ecg);
tft.print("(ECG)");
Serial.print(290);
Serial.print("/");
Serial.print(spo);
Serial.print(",");
Serial.print(heart_rate);
Serial.print(":");
Serial.print(heart_rate_ecg);
Serial.print("$");
Serial.print(291);
Serial.println("@");
}
Hello everyone,
I am using 3.5" TFT LCD Shield interface with STM32f407vet6 by ARDUINO IDE. In code, #include <MCUFRIEND_kbv.h> library used but it is not compiling for STM32f407vet6. But the same library worked for Arduino mega 2560 properly. Can you suggest me for correction required for STM32f407vet6 in the library which can help to interface with TFT LCD.
These are the errors i found:
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: note: in expansion of macro 'write8'
666 | write8(hi);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: note: in expansion of macro 'write8'
666 | write8(hi);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: note: in expansion of macro 'write8'
666 | write8(hi);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:666:13: note: in expansion of macro 'write8'
666 | write8(hi);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:667:13: note: in expansion of macro 'write8'
667 | write8(lo);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:667:13: note: in expansion of macro 'write8'
667 | write8(lo);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:667:13: note: in expansion of macro 'write8'
667 | write8(lo);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:667:13: note: in expansion of macro 'write8'
667 | write8(lo);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:667:13: note: in expansion of macro 'write8'
667 | write8(lo);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:667:13: note: in expansion of macro 'write8'
667 | write8(lo);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'void pushColors_any(uint16_t, uint8_t*, int16_t, bool, uint8_t)':
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1221:28: error: 'CS_PORT' was not declared in this scope
1221 | #define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
682 | CS_ACTIVE;
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1221:37: error: 'CS_PIN' was not declared in this scope
1221 | #define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:682:5: note: in expansion of macro 'CS_ACTIVE'
682 | CS_ACTIVE;
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1218:28: error: 'CD_PORT' was not declared in this scope
1218 | #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:24: note: in expansion of macro 'CD_COMMAND'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1218:37: error: 'CD_PIN' was not declared in this scope
1218 | #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:24: note: in expansion of macro 'CD_COMMAND'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1236:36: note: in expansion of macro 'write16'
1236 | #define WriteCmd(x) { CD_COMMAND; write16(x); CD_DATA; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:684:9: note: in expansion of macro 'WriteCmd'
684 | WriteCmd(cmd);
| ^~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:691:13: note: in expansion of macro 'write16'
691 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:52: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1026:63: note: in expansion of macro 'write8'
1026 | #define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:708:9: note: in expansion of macro 'write16'
708 | write16(color);
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp: In function 'void init_table(const void*, int16_t)':
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1221:28: error: 'CS_PORT' was not declared in this scope
1221 | #define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
875 | CS_ACTIVE;
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1221:37: error: 'CS_PIN' was not declared in this scope
1221 | #define CS_ACTIVE PIN_LOW(CS_PORT, CS_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:875:13: note: in expansion of macro 'CS_ACTIVE'
875 | CS_ACTIVE;
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1218:28: error: 'CD_PORT' was not declared in this scope
1218 | #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:876:13: note: in expansion of macro 'CD_COMMAND'
876 | CD_COMMAND;
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1218:37: error: 'CD_PIN' was not declared in this scope
1218 | #define CD_COMMAND PIN_LOW(CD_PORT, CD_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:876:13: note: in expansion of macro 'CD_COMMAND'
876 | CD_COMMAND;
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: in expansion of macro 'write8'
877 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: in expansion of macro 'write8'
877 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: in expansion of macro 'write8'
877 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: in expansion of macro 'write8'
877 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: in expansion of macro 'write8'
877 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:877:13: note: in expansion of macro 'write8'
877 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:881:17: note: in expansion of macro 'write8'
881 | write8(x);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:881:17: note: in expansion of macro 'write8'
881 | write8(x);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:881:17: note: in expansion of macro 'write8'
881 | write8(x);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:881:17: note: in expansion of macro 'write8'
881 | write8(x);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:881:17: note: in expansion of macro 'write8'
881 | write8(x);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:881:17: note: in expansion of macro 'write8'
881 | write8(x);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:25: error: 'write_8' was not declared in this scope; did you mean 'write8'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:885:21: note: in expansion of macro 'write8'
885 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:37: error: 'WRITE_DELAY' was not declared in this scope; did you mean 'WRITE_REG'?
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:885:21: note: in expansion of macro 'write8'
885 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:28: error: 'WR_PORT' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:32: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:885:21: note: in expansion of macro 'write8'
885 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1215:37: error: 'WR_PIN' was not declared in this scope
1215 | #define WR_ACTIVE PIN_LOW(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:712:59: note: in definition of macro 'PIN_LOW'
712 | #define PIN_LOW(port, pin) (port)-> REGS(BSRR) = (1<<((pin)+16))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1229:21: note: in expansion of macro 'WR_ACTIVE'
1229 | #define WR_STROBE { WR_ACTIVE; WR_IDLE; } //PWLW=TWRL=50ns
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:50: note: in expansion of macro 'WR_STROBE'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:885:21: note: in expansion of macro 'write8'
885 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:29: error: 'WR_PORT' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:32: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:885:21: note: in expansion of macro 'write8'
885 | write8(cmd);
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1216:38: error: 'WR_PIN' was not declared in this scope
1216 | #define WR_IDLE PIN_HIGH(WR_PORT, WR_PIN)
| ^~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:711:58: note: in definition of macro 'PIN_HIGH'
711 | #define PIN_HIGH(port, pin) (port)-> REGS(BSRR) = (1<<(pin))
| ^~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1022:25: note: in expansion of macro 'WR_IDLE'
1022 | #define IDLE_DELAY { WR_IDLE; }
| ^~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1025:61: note: in expansion of macro 'IDLE_DELAY'
1025 | #define write8(x) { write_8(x); WRITE_DELAY; WR_STROBE; IDLE_DELAY; }
| ^~~~~~~~~~
c:\Users\HP\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:885:21: note: in expansion of macro 'write8'
885 | write8(cmd);
| ^~~~~~
exit status 1
Compilation error: exit status 1