USB is a USB driver module, integrated MAX3421E which adds USB host or peripheral capability to any system with an SPI interface. Ever up for adding the standard USB features on your project? this M5 moudle is the perfect solution.
1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.
2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.
3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial
To get complete code, please click here
Before compile this example code, you need to download the corresponding USB library from
Unzip and copy this library folder to Arduino library path.( This is my path
Download the example
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.