Cross platform library to use Infinitton device
Project description
lib-infinitton
Cross platform library to use Infinitton screen keyboard.
Install
$ pip install libinfinitton
This uses a native library to connect to the usb port and at this time it is required that you install this manually if it is not already present. The installation procedures for different operating systems are shown on pyhidapi github page.
On linux it might be necessary to add the 53-infinitton.rules to the /etc/udev/rules.d/ directory to avoid having to run as root.
Example
#!/usr/bin/env python
import libinfinitton
import time
if __name__ == "__main__":
def down(button):
print('down: %s' % button)
def up(button):
print('up: %s' % button)
libinfinitton.Infinitton.is_present(0, 0)
infinitton = libinfinitton.Infinitton()
infinitton.on('down', down)
infinitton.on('up', up)
infinitton.clear_all_keys()
# infinitton.fill_color(0, 255, 0, 0)
infinitton.fill_image_path(0, 'folder.png')
time.sleep(60)
infinitton.disconnect()
In this example an icon is show on the first key (top-left). And for a duration of 60 seconds the keyboard will listen to key-presses. On each press, at the time of down and up the key number is printed.
To view all available methods check the documentation page.
License
libinfinitton is released under the MIT license.
libinfinitton is based on a nodejs based version.
The project owners are not affiliated with iDisplay Technology Co., Ltd, the creator of the Infinitton device.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file libinfinitton-0.3.tar.gz
.
File metadata
- Download URL: libinfinitton-0.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4bde2952bd84e5f19c251195edd2adc122f6ab04ef7a980785600cd19cf57af |
|
MD5 | caacfab8d32252e4b95dac347118ae13 |
|
BLAKE2b-256 | db9b1ebd6354787a277354b35905667756e54742946fa2c98e203bce61252e95 |