jnweiger / led-name-badge-ls32

Upload tool for an led name tag with USB-HID interface
GNU General Public License v2.0
223 stars 81 forks source link

Add macOS compatibiltiy #4

Closed mik-at closed 5 years ago

mik-at commented 5 years ago

Hi Juergen!

I added compatibility with pyhidapi, as on macOS the Kernel reserves HID-Devices and you can't access (at least write on?) them with pyusb. For now I'm checking with sys.platform for darwin, also it runs without sudo on macOS.

I'm not able to add instructions on how to install pyhidapi on macOS, I think maybe "brew install hidapi" and "pip3 install pyhidapi" but I already installed it for another project some months ago and don't know the exacts steps anymore. I'm sorry for that. :(

jnweiger commented 5 years ago

@s-light please review. This could be exactly what you need.

jnweiger commented 5 years ago

Thank you! Great if-else, so I do not need to fear any linux breakage :-)