Skip to main content

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

Now run example.py. If everything worked, your screen should now show some test content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vocore_screen-0.1.1.tar.gz (101.3 kB view hashes)

Uploaded Source

Built Distribution

vocore_screen-0.1.1-py3-none-any.whl (19.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page