Giter Site home page Giter Site logo

hayes-mouse's Introduction

hayes-mouse

Arduino and Python code for mouse control using a classic analog Hayes joystick

The Arduino polls two pins configured as ADCs to read the x- and y-axes of the joystick, and also polls two digital inputs to read the status of the joystick's two buttons.

It sends a 32-bit hexadecimal message when any change in joystick status is detected. This message currently is configured as follows (MSB first):

18 bits 1 bit 1 bit 6 bits 6 bits
ms since last message button 1 button 2 x value y value

The included Python script decodes the message and uses PyUserInput to implement basic mouse control (unfinished).

Eventually the idea is to include USB connectivity to the hardware portion and make the joystick appear as a USB HID mouse.

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.