|
|
|
@ -66,6 +66,13 @@ To reuse the venv again at a later point: |
|
|
|
|
|
|
|
|
|
sudo dnf install hidapi python3-hidapi python3-pillow python3-pyusb |
|
|
|
|
|
|
|
|
|
### Manual link the HID API lib for some Linuxes |
|
|
|
|
|
|
|
|
|
For some distributions there is a discrepancy between the where pyhidapi searches for the lib and where the package |
|
|
|
|
hidapi places it. A simple solution is to link the libraray to the needed place, e.g. |
|
|
|
|
|
|
|
|
|
ln -s /usr/lib/libhidapi-hidraw.so.0 /usr/local/lib/ |
|
|
|
|
|
|
|
|
|
### Required dependencies on Mac Systems |
|
|
|
|
|
|
|
|
|
sudo easy_install pip |
|
|
|
@ -146,7 +153,7 @@ prints the list of builtin icon names, including :happy: :happy2: :heart: :HEART |
|
|
|
|
prints some condensed help: |
|
|
|
|
|
|
|
|
|
<pre> |
|
|
|
|
usage: led-badge-11x44.py [-h] [-t TYPE] [-s SPEED] [-B BRIGHTNESS] [-m MODE] [-b BLINK] [-a ANTS] [-l] MESSAGE [MESSAGE ...] |
|
|
|
|
usage: led-badge-11x44.py [-h] [-t TYPE] [-H HID] [-s SPEED] [-B BRIGHTNESS] [-m MODE] [-b BLINK] [-a ANTS] [-l] MESSAGE [MESSAGE ...] |
|
|
|
|
|
|
|
|
|
Upload messages or graphics to a 11x44 led badge via USB HID. |
|
|
|
|
Version 0.12 from https://github.com/jnweiger/led-name-badge-ls32 |
|
|
|
@ -158,6 +165,7 @@ positional arguments: |
|
|
|
|
options: |
|
|
|
|
-h, --help show this help message and exit |
|
|
|
|
-t TYPE, --type TYPE Type of display: supported values are 12x48 or (default) 11x44. Rename the program to led-badge-12x48, to switch the default. |
|
|
|
|
-H HID, --hid HID' Set to 1 to ensure connect via HID API, program will then not fallback to usb.core library |
|
|
|
|
-s SPEED, --speed SPEED |
|
|
|
|
Scroll speed (Range 1..8). Up to 8 comma-separated values |
|
|
|
|
-B BRIGHTNESS, --brightness BRIGHTNESS |
|
|
|
@ -175,9 +183,10 @@ Example combining image and text: |
|
|
|
|
|
|
|
|
|
There are some options defining the default type: |
|
|
|
|
- use lednamebadge.py directly: default type is 11x44 |
|
|
|
|
- rename lednamebadge.py to something with '12' and use that: default type is 12x48 |
|
|
|
|
- rename lednamebadge.py to something with '12' (e.g. badge12.py) and use that: default type is 12x48 |
|
|
|
|
- use led-badge-11x44.py: default type is 11x44 |
|
|
|
|
- use led-badge-12x48.py: default type is 12x48 |
|
|
|
|
|
|
|
|
|
For all these options you can override the default type with -t |
|
|
|
|
|
|
|
|
|
### Animations |
|
|
|
|