Library to control the Vocore Touchscreen
Project description
Python wrapper for Vocore Screens
This repo includes some python helper scripts to easily interface with the VoCore Screen v2. Internally PyUSB is used, which in turn uses libusb.
For now this has only been tested with the 4" VoCore Screen v2 (with touch). This should also work with the 4.3" version.
As the 5" version has a slightly higher resolution, this will most likely not work. Adjusting the FRAME_SIZE in image.py and the command in screen.VocoreScreen._write_start could possibly fix this.
For usage check the example.py - it should be pretty straightforward.
Working features
- Setting screen brightness
- Sending images to the screen
- Drawing horizontal/vertical lines
- Drawing rects
- Drawing text
Not working (yet)
- Getting touch events (Should be interrupt endpoint at 0x81 with a length of 128 bytes)
Getting started
Linux
- Make sure your screen in plugged in
- Make sure
libusbis installed - If you want to use the scripts as non-root, make sure to add a rule to /etc/udev/rules.d/
Windows
- Download and install the LibUSBk driver from the VoCore Homepage
Now run example.py. If everything worked, your screen should now show some test content.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vocore_screen-0.1.1.tar.gz.
File metadata
- Download URL: vocore_screen-0.1.1.tar.gz
- Upload date:
- Size: 101.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a365b7e97688ef115f6a04a0edb499efe339ff0fcfb364f7c36fdba63d11784
|
|
| MD5 |
12182d009988196ac4c044843278d9f2
|
|
| BLAKE2b-256 |
14c9f9141bf5ffdf61397500852a389ea67100aecb0cc6874b8edb2c9cf9477a
|
File details
Details for the file vocore_screen-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vocore_screen-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c48766ae39a5c26adc3b54d4e70716309ab0bbcf9f8f6d2df3ddefff0b96c2d
|
|
| MD5 |
ff1997a698b7ba829235522b16bde134
|
|
| BLAKE2b-256 |
65fd55b5c900164f1f5d52ee3c50d0245aad22d6aa26b8719e3e6f5af18977b4
|