C Berry LCD TFT - omartek/linux_variePerLaboratorio GitHub Wiki

Collegare il monitor C-Berry TD

Dopo aver collegato il monitor ai GPIO, scaricare l'eseguibile ed avviarlo.

Mettere l'eseguibile in un percorso tipo /usr/local/bin'. Inserire l'eseguibile nella procedura di boot, per esempio in /etc/rc.local o in /home/user/.profile.

Configurare la risoluzione

This software clones the data from monitor (/dev/fb0) to the C-Berry. The BCM scales the resolution of the monitor down to the resolution from the C-Berry (320x240) by the gpu, not by cpu. If the software is running, the main screen can be seen on the C-Berry.

Adjustment resolution

The resolution can be changed in two ways:

* . choose the resolution via HDMI mode ** ) open file /boot/config.txt

** ) change the following enable disable_overscan = 1 disable #hdmi_force_hotplug = 1 disable #config_hdmi_boost = 4 disable #overscan_left = 24 disable #overscan_right = 24 disable #overscan_top = 16 disable #overscan_bottom = 16 disable #disable_overscan = 0 enable hdmi_group = 2 enable hdmi_mode = x

The values for hdmi_modes are defined on the following link: http://elinux.org/RPiconfig#Video_mode_options

**) save and exit file

**) reboot the Raspberry Pi

*. choose the resolution via definition of the display width and height (e.g. 320x240)

 		**) open file /boot/config.txt

**) change the following enable disable_overscan = 1 disable #hdmi_force_hotplug = 1 disable #config_hdmi_boost = 4 disable #overscan_left = 24 disable #overscan_right = 24 disable #overscan_top = 16 disable #overscan_bottom = 16 disable #disable_overscan = 0 enable frambuffer_width= 320 enable frambuffer_height= 240

**) save and exit file

**) reboot the Raspberry Pi

Start the software

Compile the software: sudo make -C /path/to/file/fb2cberry/

Start the software by: sudo /path/to/file/fb2cberry

Start the software in the background by: sudo /path/to/file/fb2cberry &

Link Utili

https://raspberrypi.stackexchange.com/questions/51727/making-the-admatec-c-berry-3-2-display-the-primary-screen

https://www.raspberrypi.org/forums/viewtopic.php?t=107713

https://www.distrelec.de/Web/Downloads/_t/ds/C-BERRY_TOUCH_eng_tds.pdf

https://github.com/loggrio/loggr-unit-raspberry/tree/master/tft/fb2cberry

https://www.raspberry-pi-geek.com/Archive/2014/06/Using-the-C-Berry-screen-for-graphics-output/(offset)/2

https://www.raspberrypi.org/forums/viewtopic.php?t=164971

https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd

⚠️ **GitHub.com Fallback** ⚠️