Giter VIP home page Giter VIP logo

bbq10kbd_i2c_sw's People

Contributors

arturo182 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bbq10kbd_i2c_sw's Issues

Shift key indistinguishable

I use the keyboard on the Keyboard FeatherWing with Circuit Python.

I wanted to know when the ALT key is pressed (and maybe other key like left shift, right shift and SYM) so that it can act as a keyboard and be used as a USB HID.

The problem is that to use as a real keyboard, I would need to be able to do CTRL+C and CTRL+D (and maybe a few other).

So I added the folowing missing constant:

CFG_REPORT_MODS  = const(1 << 6)
CFG_USE_MODS     = const(1 << 7)

And enhanced the init to set the register to the default value + CFG_REPORT_MODS (notice that reset is done first, then the config register is modified):

        self.reset()
        with self._i2c as i2c:
            self._buffer[0] = _REG_CFG | _WRITE_MASK
            self._buffer[1] = CFG_OVERFLOW_INT | CFG_KEY_INT | CFG_USE_MODS | CFG_REPORT_MODS
            i2c.write(self._buffer, end=2)

The problem is that "left shift" and "right shift" are indistinguishable at the software level. I hope they are distinguishable at the hardware level and the software could be fix. One shift key could be used as a CTRL replacement or something like that.

Can this be fixed?

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.