Mouse LED Control in Python

Discussion in 'Python' started by semagraw@gmail.com, Jul 30, 2006.

  1. Guest

    I found this link that describes the byte arrays to control the
    IM/Email Leds on my Logitech MX610 mouse:

    http://www.kdedevelopers.org/node/2029

    The link to the tarball is dead so I can't look at that. Is there
    anyway to do what the link says in Python? If you follow the link
    above, it talks about 'sending the byte array to 0x10 (16)'. I'm not
    sure if that is possible in python. Can anyone help or point me in the
    right direction? I'd also be willing to have this be done in another
    language and just call different programs from a python program when I
    need something specific done (IM light on, for example).



    Text from the link if you can't be bothered to follow it:

    "I've figured out the IM led now. As before, you send 6 bytes to report
    ID 0x10
    (16), followed by the "confirm" message.

    The magic values are:
    unsigned char confirm[6] = { 0x01, 0x80, 0x52, 0x00, 0x00, 0x00 };
    unsigned char email_off[6] = { 0x01, 0x80, 0x52, 0x06, 0x00, 0x00 };
    unsigned char email_on[6] = { 0x01, 0x80, 0x52, 0x05, 0x00, 0x00 };
    unsigned char email_pulse[6] = { 0x01, 0x80, 0x52, 0x04, 0x00, 0x00 };
    unsigned char email_flash[6] = { 0x01, 0x80, 0x52, 0x03, 0x00, 0x00 };
    unsigned char email_instanton[6] = { 0x01, 0x80, 0x52, 0x02, 0x00, 0x00
    };
    unsigned char email_instantoff[6] = { 0x01, 0x80, 0x52, 0x01, 0x00,
    0x00 };

    unsigned char im_off[6] = { 0x01, 0x80, 0x52, 0x00, 0x06, 0x00 };
    unsigned char im_on[6] = { 0x01, 0x80, 0x52, 0x00, 0x05, 0x00 };
    unsigned char im_pulse[6] = { 0x01, 0x80, 0x52, 0x00, 0x04, 0x00 };
    unsigned char im_flash[6] = { 0x01, 0x80, 0x52, 0x00, 0x03, 0x00 };
    unsigned char im_instantoff[6] = { 0x01, 0x80, 0x52, 0x00, 0x01, 0x00
    };
    unsigned char im_instanton[6] = { 0x01, 0x80, 0x52, 0x00, 0x02, 0x00
    };"


    Thanks,

    Jeff
    , Jul 30, 2006
    #1
    1. Advertising

  2. There is not enough information in that post to be able to reimpliment what he
    did in any language. You will have to try and get in touch with the author.

    -Chris
    On Sun, Jul 30, 2006 at 01:26:40PM -0700, wrote:
    > I found this link that describes the byte arrays to control the
    > IM/Email Leds on my Logitech MX610 mouse:
    >
    > http://www.kdedevelopers.org/node/2029
    >
    > The link to the tarball is dead so I can't look at that. Is there
    > anyway to do what the link says in Python? If you follow the link
    > above, it talks about 'sending the byte array to 0x10 (16)'. I'm not
    > sure if that is possible in python. Can anyone help or point me in the
    > right direction? I'd also be willing to have this be done in another
    > language and just call different programs from a python program when I
    > need something specific done (IM light on, for example).
    >
    >
    >
    > Text from the link if you can't be bothered to follow it:
    >
    > "I've figured out the IM led now. As before, you send 6 bytes to report
    > ID 0x10
    > (16), followed by the "confirm" message.
    >
    > The magic values are:
    > unsigned char confirm[6] = { 0x01, 0x80, 0x52, 0x00, 0x00, 0x00 };
    > unsigned char email_off[6] = { 0x01, 0x80, 0x52, 0x06, 0x00, 0x00 };
    > unsigned char email_on[6] = { 0x01, 0x80, 0x52, 0x05, 0x00, 0x00 };
    > unsigned char email_pulse[6] = { 0x01, 0x80, 0x52, 0x04, 0x00, 0x00 };
    > unsigned char email_flash[6] = { 0x01, 0x80, 0x52, 0x03, 0x00, 0x00 };
    > unsigned char email_instanton[6] = { 0x01, 0x80, 0x52, 0x02, 0x00, 0x00
    > };
    > unsigned char email_instantoff[6] = { 0x01, 0x80, 0x52, 0x01, 0x00,
    > 0x00 };
    >
    > unsigned char im_off[6] = { 0x01, 0x80, 0x52, 0x00, 0x06, 0x00 };
    > unsigned char im_on[6] = { 0x01, 0x80, 0x52, 0x00, 0x05, 0x00 };
    > unsigned char im_pulse[6] = { 0x01, 0x80, 0x52, 0x00, 0x04, 0x00 };
    > unsigned char im_flash[6] = { 0x01, 0x80, 0x52, 0x00, 0x03, 0x00 };
    > unsigned char im_instantoff[6] = { 0x01, 0x80, 0x52, 0x00, 0x01, 0x00
    > };
    > unsigned char im_instanton[6] = { 0x01, 0x80, 0x52, 0x00, 0x02, 0x00
    > };"
    >
    >
    > Thanks,
    >
    > Jeff
    >
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    Chris Lambacher, Jul 31, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. network lines

    VHDL code to light up LED???

    network lines, May 25, 2004, in forum: VHDL
    Replies:
    8
    Views:
    8,487
    Symon
    May 27, 2004
  2. Flemming Hansen

    LED decoder with CoolRunner II

    Flemming Hansen, Jan 9, 2006, in forum: VHDL
    Replies:
    5
    Views:
    1,591
    Mike Treseler
    Jan 23, 2006
  3. =?Utf-8?B?am9qb2Jhcg==?=
    Replies:
    1
    Views:
    4,066
    wwwtar
    Oct 2, 2006
  4. =?iso-8859-1?q?J=FCrgen_Gerstacker?=

    A swing/awt component that looks like a LED

    =?iso-8859-1?q?J=FCrgen_Gerstacker?=, Dec 15, 2006, in forum: Java
    Replies:
    2
    Views:
    1,043
    =?iso-8859-1?q?J=FCrgen_Gerstacker?=
    Dec 17, 2006
  5. Liam Knott

    C++ to python for LED Matrix

    Liam Knott, Feb 1, 2014, in forum: Python
    Replies:
    1
    Views:
    57
    Michael Torrie
    Feb 2, 2014
Loading...

Share This Page