We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 550237e commit 5fa96a0Copy full SHA for 5fa96a0
install/install_dependencies.sh
@@ -10,6 +10,7 @@ main(){
10
trap 'fail $? $LINENO' ERR
11
12
updateAndInstallPackages
13
+ enableSpi
14
installLedDriver
15
clearYoutubeDlCache
16
installNode
@@ -45,6 +46,17 @@ updateAndInstallPackages(){
45
46
sudo python3 -m pip install --upgrade youtube_dl yt-dlp numpy pytz websockets simpleaudio pygame pyjson5
47
}
48
49
+enableSpi(){
50
+ if [ "$(sudo raspi-config nonint get_spi)" = "1" ]; then
51
+ info "Enabling SPI..."
52
+ # https://raspberrypi.stackexchange.com/a/96679
53
+ sudo raspi-config nonint do_spi 0
54
+ touch $RESTART_REQUIRED_FILE
55
+ else
56
+ info "SPI was already enabled."
57
+ fi
58
+}
59
+
60
installLedDriver(){
61
info "Installing LED driver..."
62
local led_driver
0 commit comments