-
Install dependencies
python -m pip install pyserial -
Grant access rights to the USB Port (Linux)
sudo chmod 666 /dev/ttyUSB0 -
Plug in the M5Stick Controller to the PC with a USB cable and verify the device is connected
lsusb -
Open a new terminal window and run the python script
read-serial.py
A python script for reading input from a USB serial port and saving the streamed data to a file.
Run python script.
python scripts/read-serial.py