Giter Site home page Giter Site logo

arduino-ps2-mouse's People

Contributors

rucek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arduino-ps2-mouse's Issues

Works on PS2 ball mouse but not optical PS2 mouse

Have you run across the issue where a ps2 ball mouse works great, but a ps2 optical mouse does not work. It gets stuck on the line that is check for the clock to go low [waitForClockState(LOW);]. Any ideas? Thanks

Small fix for non-AVR boards

I am running this library on an ESP32-S3. My mouse seems to work fine with operating at only 3.3V instead of 5V, so I don't need level shifters. However, it is important to activate the internal pull-up resistor in the MCU using the more modern way to get this library working. To do so, change this

void PS2Mouse::high(int pin) {
    pinMode(pin, INPUT);
    digitalWrite(pin, HIGH);
}

to

void PS2Mouse::high(int pin) {
    pinMode(pin, INPUT_PULLUP);
    digitalWrite(pin, HIGH);
}

This should be also backward-compatible to AVR boards, but needs a more recent Arduino version.

Library hanging waiting for clock to go low

I've found that the library is hanging at waitForClockState(LOW) (similar to issue #1) - the application here is for a rollerball being used as an input device (through a Teensy 3.2), it seems that the code is not initialising correctly and is just blocking forever, which is reflected in monitors - attempted to put the PS2Mouse::waitForClockState into a conditional loop and that unfreezes the rest of the .ino but then kills the PS/2 parts. Any thoughts?

Odd side effect is that the library works in its original form if the Teensy is programmed and then left plugged in - dis/reconnecting the USB seems to cause the issue to present. Thanks!

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.