Send key to android?

Hello,
im trying send key to android with arduino leonardo. example i want to volume up.
Me code:

#include <Keyboard.h>
void setup() {
  Keyboard.begin();
}

void loop() {
  Keyboard.write(0x0080);
  delay(2000);
}

but it not work, not volume up on android.
hex codes i get from Keyboard Devices  |  Android Open Source Project

where is problem?
thanks

See here for information on which keys are supported by the library.

Perehama:
See here for information on which keys are supported by the library.

so i can't send custom hex code?
So how i can send volume up key?

kamera:
so i can’t send custom hex code?
So how i can send volume up key?

Keyboard.write(0x0080);

sends one byte at a time. In other words, 0x0080 is the same as 0x80 or KEY_LEFT_CTRL. If your source for volume up key is correct, you want to send 2 bytes:

Keyboard.write(0x00);
Keyboard.write(0x80);

oh, thanks.
And i found Arduino Leonardo Remote Control and Multimedia Keys Support in 1.0.5 | Some Thoughts
easy to use
Remote.increase()
Remote.decrease()
Remote.mute()
Remote.play()
Remote.pause()
Remote.stop()
Remote.next()
Remote.previous()
Remote.forward()
Remote.rewind()
and it work in windows/android and need to use arduino 1.0.5 software.

Anyway thanks for help :wink:

修改 digikeyboard.h,maxmum为ff

0x25, 0xff, // LOGICAL_MAXIMUM (101)
0x19, 0x00, // USAGE_MINIMUM (Reserved (no event indicated))
0x29, 0xff, // USAGE_MAXIMUM (Keyboard Application)