Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard - Make always use HID no longer: public usbdriver #97

Merged
merged 5 commits into from
Sep 11, 2022

Commits on Sep 10, 2022

  1. Remove defs.h

    A bunch of these were added years ago to work with FrankB's way of building sketches that can have per sketch configuration stuff
    KurtE committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    ba5c100 View commit details
    Browse the repository at this point in the history
  2. Keyboard - Make always use HID no longer: public usbdriver

    Changed the Keyboard to no longer be a top level driver, but always rely on USBHidParser (or BT) to talk to the device.
    
    One side effect of this, is I had to update several of the examples, that check for devices coming and going and remove them from the devices list and make sure they are on the HID list.  Like Mouse.
    
    Note: this also allowed me to remove the special case from HID.cpp to not shy away from claiming boot keyboard.
    
    Also now with this, setup, the
    Problem Gigabyte keyboard works without forcing it to go into boot mode.  Although still does not resolve the issue that it faults the teensy some of the time... Nullptr for pipe in transfer struct when error condition causes code to walk that list.
    
    Also added support for N-key rollover keyboards.  That  either work like that Gigabyte, or like Mike Aurus Gigabyte or my ReDragon one which after 6 keys pressed, it then switches to N key rollover messages for additional keys.
    
    Lots more details up on the thread:
    https://forum.pjrc.com/threads/71037-USBHost-Testing-Keyboard-object-not-top-level-object-instead-USBHIDParser
    KurtE committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    ad370b8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94a9362 View commit details
    Browse the repository at this point in the history
  4. Updated and new examples for testing and using keyboards

    The HIDDumper - code was updated to work better with showing keyboard data.
    
    The keyboard_viewer - shows a psuedo keyboard on an ILI9341 display, and changes the color of which keys are pressed, helps visualize that the N key rollover is working.  Also shows last key pressed or released, including multi-media keys
    
    The MouseKeyboardForward - is like KeyboardForward - but also shows debug info if not configured to usb type including keyboard (or mouse)
    It is setup with two keyboards objects to help debug with Logitech Pro G wireless mouse which created a phantom keyboard.
    KurtE committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    f53dfaa View commit details
    Browse the repository at this point in the history
  5. keyboard_viewer - make also work with ili9341_t3 library

    As it is installed by Teensyduino.
    
    Note: had a few issues, like CENTER support not there.
    Plus Opaque drawing of text using Arial did not correctly
    KurtE committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    d1bb107 View commit details
    Browse the repository at this point in the history