you could follow this tutorial , then learn how to setup the usb mode

https://docs.m5stack.com/#/en/uiflow/UIFlow_Desktop_IDE