Jermaine <jragin@...> writes:

> 
> Xiaofan Chen <xiaofanc <at> ...> writes:
> 
> > 
> > Which libhid? If it is this one, it has the same problem with
> > libusb since it is based on libusb.
> > http://libhid.alioth.debian.org/
> > 
> > You can however use HIDAPI and its python binding which use
> > native HID API, so you do not need the codeless kext.
> > http://www.signal11.us/oss/hidapi/
> > https://github.com/gbishop/cython-hidapi
> > 
> 
> Thanks Xiaofan,  I will look into HIDAPI.  Although, I wonder if I am
> barking up the wrong tree.  Remember, I need this to run on my Raspberry Pi.
>  I am thinking about moving over to Ubuntu to do all my development since
> it's Linux.
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> 

Ok, I am able to read just fine in Linux, however, I have ran into another
issue. 

LEDS[] = {0x04,0x1F};
ret = device.ctrl_transfer(0x21, 0x09, 0x204, 0, LEDS, 0x2);

The second byte in the LEDS array (0x1F) controls which LEDs are lit or not.
LEDs are numbered 0x1b to 0x1f and equals no LEDS.  I am able to get 0x1C
through 0x1f to work, but not 0x1b and 0x0.  For some reason {0x04,0x1b} is
reversed {27,4}.  Same for {0x04,0x0b}, which ends up being {11,4} and
{0x04,0x0} ends up being {0,4}.  What am I missing?




------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to