no matching function for call to 'Adafruit_ST7789::Adafruit_ST7789(int, int)

Hi,
I hope someone can help.

I'm new to Arduino and I'm trying to get an ST7789 screen to work. I've used an example code and have copied it to the letter, but I'm getting an error message, which I don't understand.

If anyone can point me in the right direction id be most grateful.

thanks

Please post the sketch that gives that error

Please follow the advice on posting code given in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and to use code tags when posting code here as it prevents some combinations of characters in code being interpreted as HTML commands such as italics, bold or a smiley character, all of which render the code useless

If the code exceeds the 9000 character inline limit then attach it to a post

The compiler error is telling you that the Adafruit_ST7789 class has no overload of its constructor that takes two ‘int’ arguments. If you look in Adafruit_ST7789.h, you’ll see that the compiler is correct, as usual.

So, there’s nothing we can do to help until you post the code you’re trying to use. And, post a link to where you got it.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.