Recalbox-Clcd
https://github.com/Choum28/Recalbox-Clcd
About
Small script written in Python for Recalbox project ( http://recalbox.com/ )
running on Raspberry Pi 2,3, which displays all necessary info on a 16x2 CLCD display
You must scrap your rom to make this script work correctly when playing.
Credits
- Original version of the recalbox script from Godhunter74
- Original project for retropie from zzeromin (https://github.com/zzeromin/RetroPie-Clcd)
- Thanks to zzeromin smyani, zerocool, GreatKStar
- Recalbox team http://www.recalbox.com
Features
- Current Date and Time
- IP address of eth0, wlan0
- CPU Temperature and Speed
- Emulation and ROM informations
- Daemon provide to manage start/stop of the script
Development Environment
- Raspberry Pi 3
- Recalbox v4.1
- 16x2 I2C HD447800 LCD (A00)
Installation
Raspberry Pi I2C GPIO Pinout
1602 LCD + IIC/IC2, 16x2 HD44780A00 or HD44780A02 (A00 = Ascii + japanese fonts, A02 = Ascii + European fonts)
Connection of the I2c to a raspberry pi 3
Scripts installation
- connect in ssh to your recalbox and mount partition to rw mode
mount -o remount, rw /
-
Copy
recalbox_clcd.py
recalbox_clcd_off.py
I2C_LCD_driver.py
lcdScroll.py
to /recalbox/scripts folder with winscp for example -
Copy
S97LCDInfoText
to /etc/init.d/ -
then give execute right on all file
chmod +x /recalbox/scripts/recalbox_clcd_off.py
chmod +x /recalbox/scripts/recalbox_clcd_off.py
chmod +x /recalbox/scripts/I2C_LCD_driver.py
chmod +x /recalbox/scripts/lcdScroll.py
chmod +x /etc/init.d/S97LCDInfoText
Activate I2C inside recalbox
- Edit /etc/modules.conf
- Add at the end of the file
i2c-bcm2708
i2c-dev
- Edit the /boot/config.txt
add at the end of line
bcm2708.vc_i2c_override=1
- reboot
Check I2C address
You should check your I2C address of 16x2 CLCD as this device can have different adress.
Those are two address each other normally => 0x27 or 0x3f.
Execute the following command (could take some time to complete)
i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
edit line #22 in I2C_LCD_driver.py in /recalbox/scripts with the correct adress show by the command (in this example :0x27).
nano I2C_LCD_driver.py
# LCD Address
ADDRESS = 0x27 # or 0x3f
Important note
To make this script work with Scummvm, they should be scrap but the path in the gamelist.xml should be a folder and not the scummvm "fake file".
<path>./FT/</path>
instead of
<path>./FT/ft.scummvm</path>
Reference
https://forum.recalbox.com/topic/5777/relier-à-un-écran-et-afficher-du-texte/121
screenshots