Can anyone throw light on what might be causing this error?
Round Waveshare 1.28" LCD connected to an Uno. Connections are correct according to several online sources (plus I connected it like this last time).
Just throws this error and I don't know why
#include <Wire.h>
#include <SPI.h>
#include <Arduino_GFX_Library.h>
#define TFT_CS 10 // Set up the screen SPI pins
#define TFT_DC 7
#define TFT_RST 8
#define TFT_BL 9
Arduino_DataBus *bus = new Arduino_HWSPI(TFT_DC, TFT_CS);
Arduino_GFX *gfx = new Arduino_GC9A01(bus, TFT_RST, 0 /* rotation */, true /* IPS */);
/*
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
*/
int colours[] = {0x0000, 0x001F, 0xF800, 0x07E0, 0x07FF, 0xF81F, 0xFFE0, 0xFFFF};
//------------------------------------------------------------------------------------------------------------------------
void setup() {
Serial.begin(115200);
Wire.begin();
pinMode(TFT_BL, OUTPUT);
gfx->begin();
gfx->fillCircle(120, 120, 120, BLACK); // Fill screen
digitalWrite(TFT_BL, HIGH); // Turn on the backlight
gfx->fillCircle(120, 120, 120, CYAN);
}
void loop() {
// put your main code here, to run repeatedly:
}
In file included from C:\Users\steve\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/Arduino_GFX_Library.h:31:0,
from C:\Users\steve\Documents\Arduino\Happy Hunter\Transmitter_code_v1\Transmitter_code_v1.ino:13:
C:\Users\steve\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_XL9535SWSPI.h:34:8: error: 'void Arduino_XL9535SWSPI::writeBytes(uint8_t*, uint32_t)' marked 'override', but does not override
void writeBytes(uint8_t *data, uint32_t len) override;
^~~~~~~~~~
C:\Users\steve\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_XL9535SWSPI.h:35:8: error: 'void Arduino_XL9535SWSPI::writePattern(uint8_t*, uint8_t, uint32_t)' marked 'override', but does not override
void writePattern(uint8_t *data, uint8_t len, uint32_t repeat) override;
^~~~~~~~~~~~
exit status 1
Error compiling for board Arduino Uno.