Help for painting on 3.6 inch LCD TFT shield and Arduino Mega 2560

The Adafruit_TFTLCD.h library should work on your ILI9341 display.
It will NOT work on your R61509 display.

The Touch_shield_kbv.ino from the MCUFRIEND_kbv library examples should work on both screens.

David.