So been messing with this for a bit. Seems there is a lot of buggy stuff with the MKS Robin Nano V3.x boards and the TS35 LCD screen.
The first thing I found out from the wiki is that the TS35 LCD screen comes with its own pre-built filament detection and pause functions. I re-compiled the latest marlin firmware, 2.1.2.1 because it had the v3.1 env for platform.io. I disabled the ADVANCED_PAUSE_FEATURE in configuration_adv.h and the ENABLE_FILAMENT_RUNOUT in Configuration.h.
In my search there was an idea to change the pin #define's.
Pause issue
However, they say to change "#define MT_DET_PIN_INVERTING true" which I could not find in my pins header file. Probably old implementation?
I did change it to this:
//
// Misc. Functions
//
#if HAS_TFT_LVGL_UI
#define MT_DET_1_PIN PA4 // MT_DET
//#define MT_DET_2_PIN PE6
#define MT_DET_PIN_STATE HIGH
#endif
Disabled the second detection pin because I wasn't using it, and then changed the pin state to high because defualt low was treating the sensor backwards.
This seemed to work, I can now print, puase (also change park settings in the LCD screen, since it is built in.) and resume.
There is a caveat though, it seems if I start the 3D printer without filament triggering the filament sensor switch, it gets stuck in a pause resume loop and freezes the LCD screen (one time crashed it, restarted by itself), not sure what's going on there, but if I at least have filament in the sensor triggering it the following things work as I expected:
PAUSE/RESUME
FILAMENT UNLOAD/LOAD
Not sure if that is helpful, or just me stating something that should be obvious. Attached the config files and pin file.