Skip to content

Connect an I2C CLCD Display to your recalbox (EN)

Choum28 edited this page Oct 14, 2017 · 2 revisions

Prerequisites

You will need an CLCD I2c like the HD44780 with rom A00 (Ascii support + japanese characters) or A02 (Ascii + European Characters)

Installation

Raspberry Pi I2C GPIO Pinout

Connection of the I2c to a raspberry pi 3

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 following lines in it:
#Activate I2C
dtparam=i2c1=on
dtparam=i2c_arm=on
  • Edit the /boot/cmdline.txt add at the end of line
bcm2708.vc_i2c_override=1
  • reboot your recalbox

Check I2C address

You should check your I2C address of 16x2 CLCD as this device can have different adress (like 0x27 or 0x3f). The adress will be required to make some display script work.

Execute the following command (could take some time to complete), old raspberry version should launch i2cdetect -y 0

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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

In this example, the adress of our I2c is 0x27.

Example of display script for CLCD.

https://forum.recalbox.com/topic/8689/script-clcd-display-on-recalbox

English

Basic

Advanced


Français

Basique

Avancée


Deutsch

Basic

Fortgeschritten


Español

Basic

Avanzado


Português

Básico

Avançado


Italiano

Di base

Avanzate

Clone this wiki locally
You can’t perform that action at this time.