nRF24 / CircuitPython_nRF24L01

CircuitPython driver library for the nRF24L01 transceiver.
http://circuitpython-nrf24l01.rtfd.io/
MIT License
45 stars 11 forks source link

Wireless hid recipes & some minor improvements #23

Closed 2bndy5 closed 3 years ago

2bndy5 commented 3 years ago

I threw together a couple recipes. These recipes aim to mimic the logitech unifying peripherals.

  1. wireless_hid_hub.py: A simplistic program to receive HID report data buffers and forward them to the USB connection.
    • Currently implemented is
      • mouse
      • keyboard
      • gamepad
      • consumer HID (multimedia keypads)
    • Each HID profile is dedicated to pipes 1-4. Pipe 0 is used for pairing (which is only open for 60 seconds upon program start). Pipe 5 is closed, but it mainly reserved for a future feature like a MIDI input/output controller. This recipe will not work on the raspberry pi because the adafruit_blinka library does not provide the usb_hid module that is included with practically all circuitpython firmware.
  2. wireless_hid_mouse.py: Simply pairs with the wireless_hid_hub and sends out a HID report buffer that resembles a USB mouse. Unlike other circuitpython libraries, this recipe supports the scroll wheel, middle (scroll wheel) button, and the special mouse buttons "forward" & "backward".

Other minor fixes