Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:lcd_led_marquees [2022/02/08 00:53] – added note about supported filesystems atarihardware:lcd_led_marquees [2022/10/04 06:22] (current) – removal of broken scripts atari
Line 38: Line 38:
 </WRAP> </WRAP>
  
-This is the lower resolution LED panel that's more suited to pixel-art display than full-color imagesIt's easy to tell this one from the LCD panel as it has a USB port on the back, while the LCD panel does not.+{{:hardware:20220218_150944_color_adjusted.jpg?400|}} {{:hardware:20220203_155232.jpg?400|}}
  
-Installation is simple. Power on the Pixelcade panelplug in its USB port into the Batocera machine[[:access_the_batocera_via_ssh|SSH into Batocera]] and run the following:+This is the lower resolution LED panel that's more suited to pixel-art display than full-color images. It's easy to tell this one from the LCD panel as it has a USB port on the back, while the LCD panel does not. This panel comes in two sizes, pictured above is the smaller size next to an Xbox One controller. 
 + 
 +Installation is simple. Power on the Pixelcade panel and plug in its USB port into the Batocera machine
 + 
 +{{:hardware:pixelcade_back_usb_port.jpg?400|}} 
 + 
 +Then [[:access_the_batocera_via_ssh|SSH into Batocera]] and run the following:
  
 <code bash> <code bash>
Line 58: Line 64:
 This is the higher resolution LCD panel that's suited to displaying full-color images. It supports Wi-Fi and sends its signals over the network instead of a USB cable. It is also possible to use an Ethernet connection in case a fully wired setup is preferred. This is the higher resolution LCD panel that's suited to displaying full-color images. It supports Wi-Fi and sends its signals over the network instead of a USB cable. It is also possible to use an Ethernet connection in case a fully wired setup is preferred.
  
-Installation uses a different command from the LED panel, so be careful. Power on the Pixelcade panel, plug in its USB port into the Batocera machine, [[:access_the_batocera_via_ssh|SSH into Batocera]] and run the following:+Installation uses a different command from the LED panel, so be careful. Power on the Pixelcade panel, FIXME (connect it to the Wi-Fi (how?)), [[:access_the_batocera_via_ssh|SSH into Batocera]] and run the following:
  
 <code bash> <code bash>
Line 110: Line 116:
 </file> </file>
  
-===== Using an x86_64 PC and an RPi4 =====+If you wish to simply see the events that are being fired off by Pixelcade's EmulationStation scripts as you're navigating the menus, run the following in an SSH terminal:
  
-It is possible to homebrew up a D.I.Y. marquee display using a spare Raspberry Pi (RPi 4 was tested, but should work on any of them) connected to a display. [[https://forum.batocera.org/d/7129-dynamic-marquee-for-pi4-working|Link to the original forum post explaining this.]] Essentially, the Raspberry Pi acts as an additional framebuffer that Batocera itself can access directly.+<code> 
 +killall java 
 +/userdata/system/pixelcade/jdk/bin/java -jar -Dioio.Seriaorts=ttyACM0 /userdata/system/pixelcade/pixelweb.jar -b -e 
 +</code>
  
-Artwork needs to be sourced and placed in the appropriate ''Marquee'' and ''roms/Marquee'' folders first.+Now you'll get the following debug output:
  
-Place ''game.sh'' into ''system/configs/emulationstation/scripts/game-selected''+{{:hardware:pixelcade_debug.png?600|}}
  
-<file bash game.sh> +===== Using the two HDMI outputs on a RPi4 =====
-#!/bin/bash +
-System=$1 #system name +
-Romname=${2%.*} #romname +
-rom=${Romname##*/+
-/userdata/marquee.sh Gameselected $System "$rom" +
-</file>+
  
-Place ''system.sh'' into ''system/configs/emulationstation/scripts/system-selected''+It is possible to use the two HDMI outputs on an RPi4, with one displaying Batocera and the other displaying the dynamic marquee[[https://forum.batocera.org/d/7129-dynamic-marquee-for-pi4-working|Link to the original forum post explaining this.]] Essentially, the Raspberry Pi draws images/videos directly to the framebuffer, which is still visible on the other display even though it's hidden by Batocera on the main display.
  
-<file bash system.sh+<WRAP center round important
-#!/bin/bash +This has broken on **v34** and higher. Stay on **v33** or lower if you intend to use this
-System=$1 #System name +</WRAP>
-/userdata/marquee.sh Systemselected $System & +
-</file>+
  
-Place ''marquee.sh'' in ''/userdata''+===== Using two computers =====
  
-<file bash marquee.sh> +[[https://forum.batocera.org/d/7269-dynamic-marquee-setup-for-all-platforms|Link to original forum post.]] [[https://www.youtube.com/watch?v=VLtqgMS90A0|Link to video demonstration.]]
-#!/bin/bash+
  
-case $1 in +This can be done using Batocera installed onto a device and another computer/Raspberry Pi connected to a separate displaySo far, this has been tested successfully using Batocera installed on an x86_64 computer/Raspberry Pi with another Raspberry Pi acting as the marquee.
-Start) +
-Romname=$3 +
-Gamepath=$2 +
-marqueeimage=$Gamepath/images/$romname-marquee.png +
-if [ -f "/userdata/roms/Marquee/videos/$Romname.mp4"+
-then +
-ffmpeg -i /userdata/roms/Marquee/videos/$Romname.mp4 -vf scale=1280:720 -sws_flags bilinear -pix_fmt rgb565le -f fbdev /dev/fb0 +
- +
-fi +
- +
-if [ -f "/userdata/roms/Marquee/hires/$Romname.jpg"+
-then +
-fbv /userdata/roms/Marquee/hires/$Romname.jpg -fer +
-elif [ -f "$marqueeimage"+
-then +
-fbv $marqueeimage -fer +
-else +
-fbv /userdata/roms/mame/images/mame.png -fer +
-fi +
- +
-;; +
-Gameselected) +
-System=$2 #system name +
-Romname=$3 #romname +
- +
-if [ -f "/userdata/roms/Marquee/$Romname.png"+
-then +
-fbv /userdata/roms/Marquee/$Romname.png -fer +
-elif [ -f "/userdata/roms/$System/images/$Romname-marquee.png" ] +
-then +
-fbv "/userdata/roms/$System/images/$Romname-marquee.png" -fer +
-else +
-fbv /userdata/roms/Marquee/mame.png -fer +
-fi +
- +
-;; +
- +
-Systemselected) +
-imagepath="/userdata/roms/sysimages/$2" +
-if [ -f "$imagepath.png"+
-then +
-fbv "$imagepath.png" -fer +
-else +
-fbv /userdata/roms/mame/images/mame.png -fer +
-fi +
- +
-;; +
- +
-esac +
-</file> +
- +
-Place ''script.sh'' in ''system/scripts'' +
- +
-<file bash script.sh> +
-#!/bin/bash +
- +
-case $1 in +
-gameStart) +
- +
-gamepath=${5%/*} +
-romname=${5##*/+
-/userdata/marquee.sh Start $gamepath ${romname%.*} & +
-;; +
- +
-gameStop) +
-killall ffmpeg +
-;; +
-esac +
-</file>+
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 214: Line 145:
 ==== My Pixelcade LED/LCD panel isn't working! ==== ==== My Pixelcade LED/LCD panel isn't working! ====
  
-It could be that it's simply not plugged in correctly. Ensure that the USB cable on both ends is firmly secure in their ports. On the Batocera machine itself, it might be worth checking if it's functional on a different port (such as a USB 3.0 port if you were using a 2.0 port, or vice-versa).+Pixelcade takes a few more moments after ES has started before it "kicks in". 
 + 
 +If it's still not working, it could be that it's simply not plugged in correctly. Ensure that the USB cable on both ends is firmly secure in their ports (or if using the LCD panel, that it's paired to the same Wi-Fi network as Batocera). On the Batocera machine itself, it might be worth checking if it's functional on a different port (such as a USB 3.0 port if you were using a 2.0 port, or vice-versa).
  
 If it's still not working, try out the following: If it's still not working, try out the following:
Line 226: Line 159:
 ~/jdk/bin/java -jar pixelcade.jar -m stream -c mame -g 1941 ~/jdk/bin/java -jar pixelcade.jar -m stream -c mame -g 1941
 </code> </code>
-  * If using the LED panel (not the LCD one), run ''ls /dev'' and search for ''ttyACM0''. If not present, then your machine has not detected the Pixelcade LED device.+  * If using the LED panel (not the LCD one), run ''ls /dev'' and search for ''ttyACM0'' or ''ttyACM1''. If neither are present, then your machine has not detected the Pixelcade LED device.
  
  • hardware/lcd_led_marquees.1644281582.txt.gz
  • Last modified: 10 months ago
  • by atari