Code Monkey home page Code Monkey logo

Comments (4)

no1so avatar no1so commented on July 23, 2024

@tinkerBOY-git I am having the same problem trying to get this library working with a SAMD based board. Not a Arduino Zero but a Adafruit Feather M0 which uses the same board as the Zero.

Did you ever find anything out regarding this?

from ps2keyboard.

tinkerBOY-git avatar tinkerBOY-git commented on July 23, 2024

No, sorry.

from ps2keyboard.

MatthewBregg avatar MatthewBregg commented on July 23, 2024

I'm using an M0, and got the library working.

The key was

attachInterrupt(irq_num, ps2interrupt, FALLING);
, as the M0 doesn't technically have all interrupt pins, (22 isn't), the earlier check
#ifdef CORE_INT_EVERY_PIN
isn't defined, and the IRQ_NUM remains 255, so the interrupt is never attached.

For a quick hack, just remove the preprocessor directive at

#ifdef CORE_INT_EVERY_PIN
and set irq_num = irq_pin unconditionally.

One suggestion: Could begin return a simple error code/bool indicating if the irq_num ever got set? Would make this a lot easier to debug and notice!

from ps2keyboard.

Related Issues (19)

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.