[Lcdproc] imonlcd / icons question
leon at tim-online.nl
Sat Feb 28 22:48:04 UTC 2009
I'm trying to write a simple script to control the icons of my imon lcd screen.
Browsing throught the code of that driver I saw that every icon has it's own code.
For example: the spinning disk => 0x0080FF0000000000
The music icon => 0x1 << 23
So if I telnet output 1, I get the spinning disk.
I I telnet output 2, I get the music icon.
I I telnet output3, I get the the spinning disk AND the music icon.
But how do I convert the this? So that I get 3, if I do '0x0080FF0000000000 + 0x1 << 23'.
I tried to convert it to ints. '0x1 << 23' converts to 1.
But '0x0080FF0000000000' converts to '36309172484046848'.
Could anybody help me with this?
Thanks in advance!
More information about the LCDproc