Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
hardware:lcd_led_marquees [2022/02/24 11:06] – making the link more convenient atari | hardware:lcd_led_marquees [2022/10/04 08:22] – removal of broken scripts atari | ||
---|---|---|---|
Line 131: | Line 131: | ||
It is possible to use the two HDMI outputs on an RPi4, with one displaying Batocera and the other displaying the dynamic marquee. [[https:// | It is possible to use the two HDMI outputs on an RPi4, with one displaying Batocera and the other displaying the dynamic marquee. [[https:// | ||
- | Artwork needs to be sourced and placed in the appropriate '' | + | <WRAP center round important> |
- | + | This has broken on **v34** and higher. Stay on **v33** or lower if you intend to use this. | |
- | Place '' | + | </WRAP> |
- | + | ||
- | <file bash game.sh> | + | |
- | # | + | |
- | System=$1 #system name | + | |
- | Romname=${2%.*} #romname | + | |
- | rom=${Romname## | + | |
- | / | + | |
- | </ | + | |
- | + | ||
- | Place '' | + | |
- | + | ||
- | <file bash system.sh> | + | |
- | # | + | |
- | System=$1 #System name | + | |
- | / | + | |
- | </ | + | |
- | + | ||
- | Place '' | + | |
- | + | ||
- | <file bash marquee.sh> | + | |
- | # | + | |
- | + | ||
- | case $1 in | + | |
- | Start) | + | |
- | Romname=$3 | + | |
- | Gamepath=$2 | + | |
- | marqueeimage=$Gamepath/ | + | |
- | if [ -f "/ | + | |
- | then | + | |
- | ffmpeg -i / | + | |
- | + | ||
- | fi | + | |
- | + | ||
- | if [ -f "/ | + | |
- | then | + | |
- | fbv / | + | |
- | elif [ -f " | + | |
- | then | + | |
- | fbv $marqueeimage -fer | + | |
- | else | + | |
- | fbv / | + | |
- | fi | + | |
- | + | ||
- | ;; | + | |
- | Gameselected) | + | |
- | System=$2 #system name | + | |
- | Romname=$3 #romname | + | |
- | + | ||
- | if [ -f "/ | + | |
- | then | + | |
- | fbv / | + | |
- | elif [ -f "/ | + | |
- | then | + | |
- | fbv "/ | + | |
- | else | + | |
- | fbv / | + | |
- | fi | + | |
- | + | ||
- | ;; | + | |
- | + | ||
- | Systemselected) | + | |
- | imagepath="/ | + | |
- | if [ -f " | + | |
- | then | + | |
- | fbv " | + | |
- | else | + | |
- | fbv / | + | |
- | fi | + | |
- | + | ||
- | ;; | + | |
- | + | ||
- | esac | + | |
- | </ | + | |
- | + | ||
- | Place '' | + | |
- | + | ||
- | <file bash script.sh> | + | |
- | # | + | |
- | + | ||
- | case $1 in | + | |
- | gameStart) | + | |
- | + | ||
- | gamepath=${5%/ | + | |
- | romname=${5## | + | |
- | / | + | |
- | ;; | + | |
- | + | ||
- | gameStop) | + | |
- | killall ffmpeg | + | |
- | ;; | + | |
- | esac | + | |
- | </file> | + | |
===== Using two computers ===== | ===== Using two computers ===== | ||
Line 232: | Line 140: | ||
This can be done using Batocera installed onto a device and another computer/ | This can be done using Batocera installed onto a device and another computer/ | ||
- | |||
- | ==== Setting up the Marquee computer ==== | ||
- | |||
- | - If you don't already have a marquee repository, start downloading the [[https:// | ||
- | - Install Raspbian OS on the Raspberry Pi to act as the marquee (referred to as Marquee from now on). | ||
- | - Set this up with a static IP to make things easier. | ||
- | - On the Marquee run the following: <code bash> | ||
- | sudo apt-get update | ||
- | sudo apt-get upgrade | ||
- | sudo apt-get install ffmpeg git libjpeg9-dev libjpeg9 libpng16-16 libpng-dev | ||
- | </ | ||
- | - Now compile FBV on the Marquee using the following commands: <code bash> | ||
- | sudo git clone https:// | ||
- | cd fbv | ||
- | sudo ./configure | ||
- | sudo make | ||
- | sudo make install | ||
- | </ | ||
- | - Set up the Marquee to automatically start the appropriate software on boot. Open the text file with root privileges with the following: <code bash> | ||
- | sudo nano / | ||
- | </ | ||
- | - Then add the following right before the '' | ||
- | cd /home/pi | ||
- | nc -vklp 5555 | /bin/bash & | ||
- | </ | ||
- | - Edit the bootup file: <code bash> | ||
- | sudo nano / | ||
- | </ | ||
- | - Change the following line from: <code bash> | ||
- | console=tty1 | ||
- | </ | ||
- | console=tty3 | ||
- | </ | ||
- | - In that same file, add onto the end of the line: <code bash> | ||
- | logo.nologo vt.global_cursor_default=0 | ||
- | </ | ||
- | * For example, the resulting '' | ||
- | console=serial0, | ||
- | </ | ||
- | - Add the following script to the ''/ | ||
- | #!/bin/bash | ||
- | |||
- | case $1 in | ||
- | GameStart) | ||
- | Systemname=$2 | ||
- | Romname=" | ||
- | |||
- | if [ -f "/ | ||
- | then | ||
- | fbv "/ | ||
- | elif [ -f "/ | ||
- | then | ||
- | fbv "/ | ||
- | else | ||
- | fbv / | ||
- | fi | ||
- | ;; | ||
- | |||
- | Gameselected) | ||
- | Systemname=$2 #system name | ||
- | Romname=" | ||
- | if [ -f "/ | ||
- | then | ||
- | fbv "/ | ||
- | else | ||
- | fbv / | ||
- | fi | ||
- | ;; | ||
- | |||
- | Systemselected) | ||
- | imagepath="/ | ||
- | if [ -f " | ||
- | then | ||
- | fbv " | ||
- | else | ||
- | fbv / | ||
- | fi | ||
- | ;; | ||
- | esac | ||
- | </ | ||
- | |||
- | ==== Setting up the Marquee folder ==== | ||
- | |||
- | - If you downloaded the sample pack, simply extract it to the root of the drive and move onto the [[# | ||
- | - On the Marquee computer, create a ''/ | ||
- | - In this folder, create/ | ||
- | - Create a new folder in the ''/ | ||
- | - Then, for every game which marquee you want to display, create a system subfolder with the same name as the [[: | ||
- | - In addition, any "high resolution" | ||
- | |||
- | Here's an example of the final folder structure: | ||
- | |||
- | < | ||
- | /marquee/ | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | ==== Setting up the scripts in Batocera ==== | ||
- | |||
- | <WRAP center round todo> | ||
- | These scripts need revision. | ||
- | </ | ||
- | |||
- | Install Batocera on the main machine. This is only supported in Batocera **v33** and up. | ||
- | |||
- | Navigate to ''/ | ||
- | |||
- | Create the following scripts and download them to the mentioned location on the Batocera computer: | ||
- | * Create a folder named '' | ||
- | #!/bin/bash | ||
- | Marqueeip=192.168.123.147 #enter your marquee computer ip address here. | ||
- | case 1 in gameStart) | ||
- | romname={5## | ||
- | gamename=${romname%.*} | ||
- | echo ./ | ||
- | ;; | ||
- | gameStop) | ||
- | echo sudo pkill ffmpeg | ||
- | ;; | ||
- | esac | ||
- | </ | ||
- | * In '' | ||
- | #!/bin/bash | ||
- | |||
- | Marqueeip=192.168.123.147 | ||
- | System=$1 #system name | ||
- | Romname=${2%.*} #romname | ||
- | rom=${Romname## | ||
- | |||
- | echo ./ | ||
- | </ | ||
- | * In '' | ||
- | #!/bin/bash | ||
- | |||
- | Marqueeip=192.168.123.147 | ||
- | |||
- | System=$1 | ||
- | echo ./ | ||
- | </ | ||
- | Once done, make all those scripts executable ('' | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== |
- hardware/lcd_led_marquees.txt
- Last modified: 46 hours ago
- by nadenislamarre