boombuler / led Goto Github PK
View Code? Open in Web Editor NEWgolang package for some LED HID devices
License: MIT License
golang package for some LED HID devices
License: MIT License
Can you please provide instructions to run the code example in readme? I tried running this on osx, and it gave me (with Busylight Lync plugged):
src/github.com/boombuler/hid/hid_darwin.go:262: cannot take the address of _Cgo_ptr(_Cfpvar_fp_deviceUnpluged)
I couldn't find in the code how to set the color of a particular led on my blinkstick. The sample code does light up the first LED on my stick, but I can't do anything with the rest of the LED's.
This is the item I purchased:
https://www.blinkstick.com/products/blinkstick-strip
If you feel like updating the project to handle more than one LED that would be cool. :)
Needs linux support in HID package.
See: boombuler/hid#1
I just tried it with Linux and it works fine with my BlinkStick nano.
Probably just need to update your docs.
https://www.plenom.com/kuando-busylight-omega/
ProductID is 0x3BCD
:
$ ioreg -p IOUSB -w0 -l
(...)
BUSYLIGHT@00110000 <class IOUSBHostDevice, id 0x100009601, registered, matched, active, busy 0 (94 ms), retain 25>
{
"sessionID" = 1291211726752
"USBSpeed" = 1
"idProduct" = 15309
"iManufacturer" = 1
"bDeviceClass" = 0
"IOPowerManagement" = {"PowerOverrideOn"=Yes,"DevicePowerState"=2,"CurrentPowerState"=2,"CapabilityFlags"=32768,"MaxPowerState"=2,"DriverPowerState"=0}
"bcdDevice" = 256
"bMaxPacketSize0" = 8
"iProduct" = 2
"iSerialNumber" = 0
"bNumConfigurations" = 1
"USB Product Name" = "BUSYLIGHT"
"USB Address" = 7
"locationID" = 1114112
"bDeviceSubClass" = 0
"bcdUSB" = 512
"kUSBCurrentConfiguration" = 1
"IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBHostFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
"bDeviceProtocol" = 0
"USBPortType" = 0
"IOServiceDEXTEntitlements" = (("com.apple.developer.driverkit.transport.usb"))
"USB Vendor Name" = "PLENOM APS"
"Device Speed" = 1
"idVendor" = 10171
"kUSBProductString" = "BUSYLIGHT"
"IOGeneralInterest" = "IOCommand is not serializable"
"kUSBAddress" = 7
"kUSBVendorString" = "PLENOM APS"
}
https://www.plenom.com/kuando-busylight-alpha/
ProductID is 0x3BCA
:
$ ioreg -p IOUSB -w0 -l
(...)
BUSYLIGHT@00110000 <class IOUSBHostDevice, id 0x10000a20e, registered, matched, active, busy 0 (87 ms), retain 25>
{
"sessionID" = 1426362584408
"USBSpeed" = 1
"idProduct" = 15306
"iManufacturer" = 1
"bDeviceClass" = 0
"IOPowerManagement" = {"PowerOverrideOn"=Yes,"DevicePowerState"=2,"CurrentPowerState"=2,"CapabilityFlags"=32768,"MaxPowerState"=2,"DriverPowerState"=0}
"bcdDevice" = 256
"bMaxPacketSize0" = 8
"iProduct" = 2
"iSerialNumber" = 0
"bNumConfigurations" = 1
"USB Product Name" = "BUSYLIGHT"
"USB Address" = 7
"locationID" = 1114112
"bDeviceSubClass" = 0
"bcdUSB" = 512
"kUSBCurrentConfiguration" = 1
"IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBHostFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
"bDeviceProtocol" = 0
"USBPortType" = 0
"IOServiceDEXTEntitlements" = (("com.apple.developer.driverkit.transport.usb"))
"USB Vendor Name" = "PLENOM APS"
"Device Speed" = 1
"idVendor" = 10171
"kUSBProductString" = "BUSYLIGHT"
"IOGeneralInterest" = "IOCommand is not serializable"
"kUSBAddress" = 7
"kUSBVendorString" = "PLENOM APS"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.