Hi everyone, I'm trying to make the sketch for an arduino Leonardo. In this sketch I need to imitate "sleeping mode" button.. I didn't found this function in keyboard library.
Thank you a lot.
Better explanation, please and where is your code? What keyboard library?
Paul
http://www.usb.org/developers/hidpage/Hut1_12v2.pdf
Looks like the System Sleep button (code 0x82) and System Hibernate button (code 0xA8) are in the Generic Desktop Page (0x01) and not in the Keyboard/Keypad Page (0x07) that the Keyboard library supports. You will have to create a variation of the Keyboard library to support Page 0x01 and add a function to allow you to send raw codes.
Good luck.