Skip to content

Instantly share code, notes, and snippets.

@aegis1980
Last active April 3, 2022 02:05
Show Gist options
  • Save aegis1980/2aef511b43469cf8eba7ec3ecb214752 to your computer and use it in GitHub Desktop.
Save aegis1980/2aef511b43469cf8eba7ec3ecb214752 to your computer and use it in GitHub Desktop.
Openauto GPIO>Keyboard mapping controller service
[Controller]
; Type of the input device
; 1 - Audi MMI 2G panel
; 2 - BMW iDrive Gen 1 controller
; 3 - BMW IBUS
; 4 - Audi RNSE
; 5 - Rotary Encoder
; 6 - GPIO
; 7 - Resistive Buttons
Type=6
; Transition from LOW to HIGH state simulates key press, transition from HIGH to LOW state simulates key release.
[GpioButtons]
; Number of configured GPIO pins
Count=5
; [INFO] button >> 'esc' keypress for 'Voice command' in android auto
Button_0_Pin=15
Button_0_Key=Escape
; [MENU] button >> 'H' keypress for 'Home'
Button_1_Pin=18
Button_1_Key=H
; [AV] button >> 'M' keypress for voice command in Android Auto
Button_2_Pin=20
Button_2_Key=M
; [MAP] button >> 'F' keypress for maps in Android Auto
Button_3_Pin=26
Button_3_Key=F
; [MEDIA] button >> 'J' keypress for media in Android Auto
Button_4_Pin=21
Button_4_Key=J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment