From adf5a3b317c25fe184138b11b841b17df865a6f5 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 31 Oct 2024 11:35:48 -0400 Subject: [PATCH] rpi: add GPIO keys --- raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend b/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend index ea3d705..67e5cdb 100644 --- a/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend +++ b/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend @@ -22,4 +22,12 @@ do_deploy:append() { # Enable hvmpd overlay: echo "dtoverlay=hvmpd" >> $CONFIG + + # Important: no whistespace... + echo "dtoverlay=gpio-key,gpio=23,active_low=0,gpio_pull=up,label=play,keycode=164" >> $CONFIG + echo "dtoverlay=gpio-key,gpio=24,active_low=0,gpio_pull=up,label=left,keycode=105" >> $CONFIG + echo "dtoverlay=gpio-key,gpio=12,active_low=0,gpio_pull=up,label=down,keycode=108">> $CONFIG + echo "dtoverlay=gpio-key,gpio=16,active_low=0,gpio_pull=up,label=enter,keycode=28">> $CONFIG + echo "dtoverlay=gpio-key,gpio=7,active_low=0,gpio_pull=up,label=right,keycode=106">> $CONFIG + echo "dtoverlay=gpio-key,gpio=8,active_low=0,gpio_pull=up,label=up,keycode=103">> $CONFIG } -- 2.20.1