Hi, Alexis,
Thanks for your quick reply.
Yes, I have tried this UGREEN USB OTG cable on another mobilde phone (Smartisan T1), and this example works well.
In addition, I have also tried several other UGREEN USB OTG cables to run this examlpe on Mate40 Pro, all failed to detect the mobile phone, so I think it should be compatibility issue, not caused by one defective USB cable.
Best Regard,
Dunzi Qian