• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

fn Key press via Arduino HID

Hello,

I'm working on an Arduino based input device for my Note 5 and am trying to control the volume in Google Music. When I hook up a generic USB keyboard I can press fn + F8/F9 for Vol Down/Up. I'm not sure how to code this into the Arduino tho.

For example:
I have Keyboard.write(' '); for pause/play and Keyboard.write(KEY_RIGHT_ARROW); for next song.

I've tried Keyboard.write(0xEA); for Vol Down but it does nothing.
Same goes for Keyboard.write(0xE9); for Vol Up.

Any suggestions or if you can point me in the right direction it would be much appreciated. I've been reading thru the 'Handle keyboard input' on developer.android.com but can't seem to find my answer. The Arduino I'm working with is 32u4 based if that is of relevance.

Thank you!
 
  • Like
Reactions: cam192064

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones