GithubHelp home page GithubHelp logo

wooting-python-logger-example's Introduction

wooting-python-logger-example

This is a basic script showing how to read keypress data from a Wooting One/Two keyboard using the Wooting Analog SDK.

The Wooting SDK has a C interface, so this script uses ctypes to accces methods in the dynamic libraries provided. It doesn't expose all the functionality in the SDK but should allow reading of key states.

Instructions:

  • Follow the SDK installation instructions for your platform, and find the path to the libwooting_analog_wrapper dynamic library (the extension will be .so, .dll or .dylib depending on the platform)
  • Connect a Wooting keyboard
  • Run the script and press Space to start checking for keypresses
  • Try pressing some keys: if things are working you'll see Keys pressed: <number> messages being printed
  • To stop recording, just hit Escape

Each line of the recorded CSV file will contain 3 fields:

  • a timestamp in seconds
  • the number of keys pressed at that time point
  • a |-separated sequence (which may be empty) of interleaved scan codes and analog pressure values (e.g. scan_code_1|analog_value_1|scan_code_2|analog_value_2|...)

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.