funkey_gpio_mapping.conf 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ##################################
  2. # Funkey GPIO keymap config file #
  3. ##################################
  4. # Format:
  5. #
  6. # - First all GPIO Pin numbers must be declared (integers separated by commas)
  7. # Example: 0,1,2,3,4,6,7,11,12,13,14,15
  8. #
  9. # - Then the mapping can be done as follows (one line per mapping):
  10. # Pin_number[+Pin_number...], type_mapping, value, str_help_name_pin, str_help_fct_pin
  11. #
  12. # args: * Pin_number is the pin number concerned by the maping,
  13. # add +Pin_number for multiple touch mapping (not limited in nb of pins)
  14. # * type_mapping can be KEYBOARD or SHELL_COMMAND
  15. # * value is :
  16. # if type_mapping==KEYBOARD: the keycode from /usr/include/linux/input.h]
  17. # if type_mapping==SHELL_COMMAND: the shell command to exec
  18. # * str_help_name_pin is a sweet name for the pin (ex: PB5)
  19. # * str_help_fct_pin is an help str to indicate the function of this mapping
  20. ###################################
  21. # Pins declaration:
  22. 0,1,2,3,4,6,7,10,11,12,13,14,15
  23. ###################################
  24. # Mapping:
  25. 7, KEYBOARD, KEY_F, KEY_F, Fn
  26. 6, KEYBOARD, KEY_S, KEY_S, Start
  27. 7+6, KEYBOARD, KEY_K, KEY_K, Select
  28. 3, KEYBOARD, KEY_U, KEY_U, Up
  29. 7+3, KEYBOARD, KEY_P, KEY_P, Quick Save
  30. 4, KEYBOARD, KEY_L, KEY_L, Left
  31. 7+4, KEYBOARD, KEY_J, KEY_J, Aspect ratio factor --
  32. 1, KEYBOARD, KEY_D, KEY_D, Down
  33. 7+1, KEYBOARD, KEY_H, KEY_H, Aspect ratio mode change
  34. 0, KEYBOARD, KEY_R, KEY_R, Right
  35. 7+0, KEYBOARD, KEY_I, KEY_I, Aspect ratio factor ++
  36. 15, KEYBOARD, KEY_N, KEY_N, R1
  37. 7+15, KEYBOARD, KEY_O, KEY_O, R2
  38. 2, KEYBOARD, KEY_M, KEY_M, L1
  39. 7+2, KEYBOARD, KEY_V, KEY_V, L2
  40. 12, KEYBOARD, KEY_B, KEY_B, B
  41. 7+12, KEYBOARD, KEY_G, KEY_G, Brightness++
  42. 14, KEYBOARD, KEY_A, KEY_A, A
  43. 7+14, KEYBOARD, KEY_E, KEY_E, Volume--
  44. 13, KEYBOARD, KEY_X, KEY_X, X
  45. 7+13, KEYBOARD, KEY_W, KEY_W, Brightness--
  46. 11, KEYBOARD, KEY_Y, KEY_Y, Y
  47. 7+11, KEYBOARD, KEY_C, KEY_C, Volume++
  48. 10, SHELL_COMMAND, poweroff, N_OE, Poweroff because N_OE_received
  49. # Bypass to remove when button axp working:
  50. #7+15, KEYBOARD, KEY_Q, 7+11, Launch menu