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
libusb
is 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
Hashes for vocore_screen-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a69e9948253325dfba1597b3a1612cb017c621d74270ec7f77d8678d0b3a1e7 |
|
MD5 | 0467eebb32fbd591769c4901d3fdfdb0 |
|
BLAKE2b-256 | 1f2947f8137b09fd2a65ad9aeafe46176cbe76a0737c639831514bc454c77617 |