Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Mouse LED Control in Python

Reply
Thread Tools

Mouse LED Control in Python

 
 
semagraw@gmail.com
Guest
Posts: n/a
 
      07-30-2006
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

 
Reply With Quote
 
 
 
 
Chris Lambacher
Guest
Posts: n/a
 
      07-31-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu Control - Expand items on mouse click rather than mouse hover =?Utf-8?B?am9qb2Jhcg==?= ASP .Net 1 10-02-2006 03:41 AM
Heres a mouse theres a mouse what a mouse do? unholy Gaming 37 09-17-2006 08:59 AM
SunbeamTech LED Keyboard and Mouse @ InsaneTek Silverstrand Front Page News 12 07-17-2005 02:25 AM
Canon Remote control unit (WL DC100) - battery killer (LED always on?) Joe Digital Photography 1 02-08-2004 10:55 PM
LED there be Light, a D.I.Y. LED ringlight E Pericoloso Sporgersi Digital Photography 18 08-19-2003 03:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57