diff --git a/kiosk_skeleton/boot/config.txt b/kiosk_skeleton/boot/config.txt index 501455a..bb47d24 100644 --- a/kiosk_skeleton/boot/config.txt +++ b/kiosk_skeleton/boot/config.txt @@ -60,4 +60,5 @@ over_voltage=4 arm_boost=1 [all] -avoid_warnings=1 \ No newline at end of file +avoid_warnings=1 +dtparam=spi=on \ No newline at end of file diff --git a/kiosk_skeleton/etc/hyperion/hyperion.config.json b/kiosk_skeleton/etc/hyperion/hyperion.config.json new file mode 100644 index 0000000..5072d04 --- /dev/null +++ b/kiosk_skeleton/etc/hyperion/hyperion.config.json @@ -0,0 +1,20 @@ +{ + "device" : + { + "name" : "MyPi", + "type" : "ws281x", + "leds" : 50, + "colorOrder" : "grb", + "gpio" : 18, + "freq" : 800000, + "dmanum" : 5 + }, + + "grabber-framebuffer" : + { + "width" : 64, + "height" : 64, + "frequency_Hz" : 10.0, + "priority" : 890 + } +} \ No newline at end of file diff --git a/kiosk_skeleton/etc/systemd/system/hyperion.service b/kiosk_skeleton/etc/systemd/system/hyperion.service new file mode 100644 index 0000000..a029c05 --- /dev/null +++ b/kiosk_skeleton/etc/systemd/system/hyperion.service @@ -0,0 +1,16 @@ +[Unit] +Description=Hyperion ambient light systemd service +After=network.target + +[Service] +ExecStart=/usr/bin/hyperiond +WorkingDirectory=/usr/share/hyperion/bin +User=root +Group=root +TimeoutStopSec=5 +KillMode=mixed +Restart=on-failure +RestartSec=2 + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/kiosk_skeleton/raspberry_pi_bullseye.sh b/kiosk_skeleton/raspberry_pi_bullseye.sh index 97db218..9123c94 100644 --- a/kiosk_skeleton/raspberry_pi_bullseye.sh +++ b/kiosk_skeleton/raspberry_pi_bullseye.sh @@ -11,4 +11,11 @@ APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Option # This step is a bit risky, as the current kernel in https://github.com/raspberrypi/rpi-firmware might # be less tested as the currently shipping kernel in the Raspberry Pi images. apt install -y rpi-update -SKIP_CHECK_PARTITION=1 SKIP_WARNING=1 rpi-update \ No newline at end of file +SKIP_CHECK_PARTITION=1 SKIP_WARNING=1 rpi-update + +# Install Hyperion.ng +wget -qO- https://apt.hyperion-project.org/hyperion.pub | gpg --dearmor -o /usr/share/keyrings/hyperion.pub +echo "deb [signed-by=/usr/share/keyrings/hyperion.pub] https://apt.hyperion-project.org/ bookworm main" > /etc/apt/sources.list.d/hyperion.list +apt update +apt install -y hyperion +systemctl enable hyperion.service \ No newline at end of file