beny10
August 14, 2013, 7:32am
1
Hi,
I have a Leonardo board and i want to change PC volume from board!But i don't know the code!
void setup()
{ Keyboard.begin();
}
void loop()
{
Keyboard.press(175);
delay(100);
Keyboard.releaseAll();
delay(5000);
}
But with 175 doesn't work!Please help me!
Surely everyone (!) knows it's 0xE0, 0x32 for the keypress and 0xE0, 0xF0, 0x32 for the key release to turn the volume up.
beny10
August 17, 2013, 8:03pm
4
Can you write for me all the code ?Please!
system
September 3, 2013, 6:49pm
5
hey guys,
Im tryin the same thing now, trying to change my pc volume remotely, with keycodes from :
VK_VOLUME_UP
VK_VOLUME_DOWN
keys their keyCodes are 174 for volume down, 175 for volume up, (http://whatthekeycode.com/ )
but when I give these values to arduino it writes 9999 and 0000 instead of pressing volume buttons
I also tried these values 0xAE, 0xAF, its same.
I couldnt find any resource for changing pc volume with processing or arduino so I tried to do it in easy way, with keypress to volume buttons. seems it wont work.
any ideas?
system
September 3, 2013, 6:57pm
6
UKHeliBob:
Surely everyone (!) knows it's 0xE0, 0x32 for the keypress and 0xE0, 0xF0, 0x32 for the key release to turn the volume up.
btw these values are not working