importing micropython librarys

asumsaus

  • Newbie
  • *
    • Posts: 2
    • View Profile
Howdy Yall,

I am trying to import the micropython hid library (https://github.com/micropython/micropython-lib/blob/master/micropython/usb/usb-device-hid/usb/device/hid.py)

I am running across an issue where the upload will get to 2% then pause.
I haven't had this issue uploading the dependent libraries, they will upload with no issue then the file structure will update on the thumby code editor showing the file.

I have tried formatting the thumby and trying again, to no avail. Again I have uploaded the dependent libraries with no issue. This isn't even the largest file (the largest being 35kb and the hid library only being 9kb), the thumby code editor is also showing that I have more than enough storage capacity available.


The link above leads to the hid library code. and I will attach a screenshot of the "frozen" upload progress bar.


asumsaus

  • Newbie
  • *
    • Posts: 2
    • View Profile
Also, I am fairly inexperienced with python so go easy on me


N0P3

  • Newbie
  • *
    • Posts: 1
    • View Profile
Try using mpremote for installation. You can install it via pip. The command to install hid using it is:
Code: [Select]
mpremote connect /dev/ttyXXX mip install usb-device-hidUnfortunately, the MicroPython 1.19 version doesn’t support machine.USBDevice. I’m also looking for a solution right now.


 

SMF spam blocked by CleanTalk