mirror of https://github.com/ARMmbed/mbed-os.git
This test case uses `hidapi` -- a cross-platform Python module. To keep the initial Mbed setup as simple as possible, the `hidapi` module is skipped on Linux hosts because of its external dependancies for this platform. The module can be easily installed following instructions from the README file. The test case is skipped if the host machine lacks `hidapi` module. |
||
---|---|---|
.. | ||
README.md | ||
main.cpp | ||
requirements.txt |
README.md
Testing the USB HID device with a Linux host
Before running tests-usb_device-hid
test suite on a Linux machine, please
make sure to install the hidapi
Python module first, otherwise some test
cases will be skipped. Due to external dependencies for Linux, this module
is not installed during the initial setup, to keep the process as simple
as possible.
For Debian-based Linux distros, the dependencies can be installed as follows (based on module's README):
apt-get install python-dev libusb-1.0-0-dev libudev-dev
pip install --upgrade setuptools
To install the hidapi
module itself, please use the attached
TESTS/usb_device/hid/requirements.txt
file:
pip install -r requirements.txt