Volume Leonardo

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!

176?

What is 175 anyway?

Surely everyone (!) knows it's 0xE0, 0x32 for the keypress and 0xE0, 0xF0, 0x32 for the key release to turn the volume up.

Can you write for me all the code ?Please! :slight_smile:

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?

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