I am new but want to program a Pro Micro to send an F1 character when an input is triggered. Normal charactes/letters work fine, I just can't get function keys to work.
sample of code
if (digitalRead(buttonPin) == 0) // if the button goes low
Keyboard.write(0x70); // send a F1 in hex to the computer via Keyboard HID
delay(1000); // delay