question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`find_device` module missing in `adafruit_hid.keyboard.Keyboard`

See original GitHub issue

https://github.com/adafruit/Adafruit_CircuitPython_HID/blob/2fddabcaf0df1763111ed9dbf9e2d4cdb5b0434e/adafruit_hid/keyboard.py#L17

Doesn’t the line from . import find_device in adafruit_hid.keyboard.Keyboard.py expect that there is a find_device submodule in the adafruit_hid library hierarchy? Or am I missing something about importing Adafruit libraries. I am only trying to execute the code.py on an Adafruit Metro M4 Express board with updated bootloader and CircuitPython.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
dhalbertcommented, Feb 9, 2022

Glad you figured it out! A .py file takes precedence over a .mpy file of the same name, so what happened makes sense.

0reactions
ivogeorgcommented, Feb 8, 2022

@dhalbert, I think I know what happened. When I was updating the libraries, a stray empty __init__.py had remained in the adafruit_hid. As I said, I am using the compressed mpy files, so I can’t view them. Deleted the stray and that cleared the import problem.

I am guessing this code is a bit outdated because I am running into errors that can be explained easily with changes in the libraries.

Thanks for the prompt responses!

Read more comments on GitHub >

github_iconTop Results From Across the Web

adafruit_hid.keyboard — Adafruit HID Library 1.0 documentation
Source code for adafruit_hid.keyboard ; press · *keycodes): """Send a report indicating that the given keys have been pressed. ; release · *keycodes):...
Read more >
Custom HID Devices in CircuitPython - Adafruit Learning System
Keyboards, mice, digitizer tablets, joysticks, and game controllers are all HID devices. CircuitPython can emulate three standard HID ...
Read more >
keyboard not showing in device manager - YouTube
In this video you will learn how to fix keyboard missing in device manager or in other words keyboard not showing in device...
Read more >
Adafruit HID Library Documentation - Read the Docs
The Keyboard class sends keypress reports for a USB keyboard device to the host. The Keycode class defines USB HID keycodes to send...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found