MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields

Please run the LCD_ID_readreg example.
Check that it is giving the correct output i.e. as in #2769

Then run all the other MCUFRIEND_kbv examples.

If an example does not work, quote the example sketch name.
Describe the problem.

I have no intention of even looking at your "code" until you have run the library examples.
And you have edited your message "code" to use Code Tags i.e. </> icon

David.