Dukweeno / Duckuino

Simple DuckyScript to Arduino C converter.
https://dukweeno.github.io/Duckuino/
MIT License
353 stars 117 forks source link

[REQ] Additional keyboard function keys #109

Closed kronflux closed 4 years ago

kronflux commented 4 years ago

Could someone add the ability to use additional function keys that were present on older and specialty keyboard? F13-F18

define KEY_F13 0x68

define KEY_F14 0x69

define KEY_F15 0x6A

define KEY_F16 0x6B

define KEY_F17 0x6C

define KEY_F18 0x6D

I have tried adding this myself, but have limited knowledge with Arduino libraries. I try to press F15, and I get "j" rather than the press of F15.

kronflux commented 4 years ago

Turns out the values are wrong.

These are the correct ones:

define KEY_F13 0xF0 // 0x68 + 0x88

define KEY_F14 0xF1 // 0x69 + 0x88

define KEY_F15 0xF2 // 0x6A + 0x88

define KEY_F16 0xF3 // 0x6B + 0x88

define KEY_F17 0xF4 // 0x6C + 0x88

define KEY_F18 0xF5 // 0x6D + 0x88

Sorry. Closing.