Giter Club home page Giter Club logo

Comments (2)

thewh1teagle avatar thewh1teagle commented on July 28, 2024

Hi,
zero_hid uses usb gadget linux driver under the hood.
I don't think that this driver supports registering / listening to caps lock change, but instead looks like there's a way to check it with polling (by sending request and getting response whether it's on / off)

from zero-hid.

jzhvymetal avatar jzhvymetal commented on July 28, 2024

Hi, zero_hid uses usb gadget linux driver under the hood. I don't think that this driver supports registering / listening to caps lock change

It might be possible that you have to change the keyboard descriptor to also include a read report. You can see an example of the descriptor that I use with CP in the link below. In the read report, it will have the states for locks and LEDs.

https://github.com/jzhvymetal/PY_Barrier/blob/main/KM_CPHID_ACTORS.py

When I find time I want to try to get my above project to also work native on the PI's that support HID in Raspbian.

from zero-hid.

Related Issues (18)

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.