Coder Social home page Coder Social logo

10moons-driver's Introduction

10moons-driver

Simple driver for 10moons T503 tablet for linux

About

Driver which provides basic functionality for 10moons T503 tablet:

  • 4 buttons on the tablet itself
  • Correct X and Y positioning
  • Pressure sensitivity

Tablet has 4096 levels in both axes and 2047 levels of pressure.

How to use

Clone or download this repository.

git clone https://github.com/alex-s-v/10moons-driver.git

Then install all dependencies listed in requirements.txt file either using python virtual environments or not.

python -m pip install -r requirements.txt

Connect tablet to your computer and then run driver.py file with sudo privileges.

sudo python driver.py

You need to connect your tablet and run the driver prior to launching a drawing software otherwise the device will not be recognized by it.

Configuring tablet

Configuration of the driver placed in config.yaml file.

You may need to change the vendor_id and the product_id but I'm not sure (You device can have the same values as mine, but if it is not you can run the lsusb command to find yours).

Buttons assigned from in the order from left to right. You can assign to them any button on the keyboard and their combinations separating them with a plus (+) sign.

To list all the possible key codes you may run:

python -c "from evdev import ecodes; print([x for x in dir(ecodes) if 'KEY' in x])"

Credits

Some parts of code are taken from: https://github.com/Mantaseus/Huion_Kamvas_Linux

Known issues

Buttons on the pen itself do not work and hence not specified. I don't know if it's the issue only on my device or it's a common problem.

10moons-driver's People

Contributors

alex-s-v avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.