I am trying to plot a sine wave form on an MSP2807, 2.8 inch TFT SPI, 240x320 display being driven by an ESPWROOM32 development module. I know that the sketch is calculating the correct pixel values for the sine wave form and associated axes and tic marks.
But when the sketch reaches the draw line and draw string commands it does not plot onto the MSP2807 screen.
XFPD: Thank you for looking at this sketch. I don't get any error messages. It just seems that when the sketch is directed to draw graphics, it doesn't do them even thought the variables to be plotted and drawn have a calculated value.
These kind of graphs require all your mathematical skills and that you are willing to think differently when we talk about the vertical axis. In TFTs the vertical axis is upside down, so you must always consider that this situation turns what you know about graphics on its head. All the libraries I know have started from the Adafruit libraries, their approach is simple but effective, the use of DMA is something that we must thank many enthusiasts who have designed very advanced libraries.
Look at this example, which you can easily transfer to the instructions of the library you are using for your screen. I just programmed it on a MEGA with an ILI9488-SPI very similar to the one you have in your project.
Try to divide the project into small parts at a time, after you have mastered each part very well, put them together into what you want to show on the TFT.
TFTLCDCyg: Thank you for your very useful help in interfacing an Arduino Uno uProcessor to an MSP2807, 2.8 inch TFT SPI 240 x 320 display. With your help, I was able plot a simple sine curve on this display: