Giter VIP home page Giter VIP logo

ch57x-keyboard-tool's Introduction

What is this?

This is an utility for programming small keyboards like this one:

There are several modifications of such keyboards with different number of buttons and knobs. Utility was tested to work with:

  • 3ร—3 with 2 knobs
  • 3ร—4 with 2 knobs (Bluetooth version)

Such keyboards are popular on AliExpress and seller usually sends software for programming, but it:

  • requires Windows,
  • is very ugly and inconvenient,
  • can only program one key at a time
  • don't expose all keyboard features

How to use?

Sorry, right now there are no prebuilt binaries, may be fixed later. Install cargo utility using rustup, then execute cargo install ch57x-keyboard-tool.

Now create you own config from provided example-mapping.yaml, and apply:

ch57x-keyboard-tool upload < your-config.yaml

You can also change LED configuration, if you keyboard supports it:

ch57x-keyboard-tool led 1

Diagnostics

If you have any troubles using this software, please provide diagnostics.

Getting list of attached USB devices

MacOS

ioreg -w0 -l -p IOUSB

or

system_profiler SPUSBDataType

Linux

lsusb -v

Monitoring generated keyboard and mouse events

Most simple (and cross-platform) way I've found is using keyboard and mouse Python modules.

Monitoring keyboard:

pip3 install keyboard
sudo python3 -m keyboard

Monitoring mouse:

# Latest published 'mouse' module doesn't support MacOS, so use latest version from Git:
git clone https://github.com/boppreh/mouse
cd mouse
python3 -m mouse

ch57x-keyboard-tool's People

Contributors

jtsagata avatar kriomant 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.