I am having some issues with my mini project for college. I’m trying to make a Pong game. I’m getting error “No instance of constructor “mbed::SPI::SPI” matches the argument list in “main.cpp”, Line: 5, Col: 10”. I tried with importing library for tft 1.44 spi lcd which I’m using and the error is still there. Don’t know what to do. I’m still a beginner in coding and I’m still learning. Thanks for help! I’m using Nucleo stm32f446re with tft 1.44 spi display, 2 sliding potentiometers and push button.
you have a mistake in the constructor of SPI, it does not have 5 function parameters, it need only for 3-4 and that depends to your requirements about CS control.
I do not think it is good practice connect Morpho headers to breadboards.
You also wrote about some library, but you do not include any library and also you not have any library in your project.
Methods, what you call in the context of SPI do not make sense. SPI does not have such methods. So you probably copied and rewrote the constructor from a Graphic library.
Thanks a lot. Yeah I know I have a lot of stupid mistakes, but as I said, I’m a total beginner in this. I need to finish this project by February. You just gave me great advice that will help.
There is nothing wrong with being a beginner, everyone must begin somehow. Important is make an effort, that will teach you.
Do not hesitate and ask for help if you get stuck somewhere.