This driver allows the host to communicate with HID-compliant Auxiliary Display based on Arduino. The main idea of this library is to provide a simple unified communication with the small LCD displays supported by Arduino. Such displays can be used for showing system information such as hardware temperature, fan speed, percentage of memory available etc., and used by host applications as necessary.
HIDLCD is build on top of the HIDAPI library and provides the next level of abstraction specific to the HID-compliant auxiliary LCD displays.
Compatible types of displays include:
- 1602 LCD Display
- 1604 LCD Display (to be tested)
- 2004 LCD Display (to be tested)
- Linux (tested on Ubuntu 18.04 LTS)
- Mac OSX (tested on macOS Big Sur 11.6.2)
The overall architecture of the solution is represented on the image below:
The solution is consisted of 2 parts - the HID-compliant LCD display and the host. The host part contains the auxdisplay service, the HIDLCD driver (this project) and the HIDAPI library.
Before executing the steps below, please ensure the developer tools are installed on your host. If your operating
system is Ubuntu, you can run sudo apt update
& sudo apt install build-essential
in the bash terminal.
- Install HIDAPI library. Just follow the instructions in HIDAPI Readme.
- Clone this repository to a folder on your host machine.
- Navigate to the folder and execute
make
andsudo make install
Please ensure Xcode Command Line Tools installed on your Mac. This can be done by running the command
xcode-select --install
in the terminal.
The rest of the installation is the same as for Linux.
Once the driver is installed, you can test it. Navigate to the root folder of this repository and run the
make test
. If everything is installed properly, you should see the test messages on the LCD screen.
API documentation can be found here.