Datasheet

Download the example usb_mouse.ino
Plug the USB mouse into USB A port.
Hold down the left button to draw white lines.
Hold down the right button to draw green line.
Press the middle wheel button to clear the screen.
M5Stack Docs