Let's try 320x240 3.2inch LCD.
You can buy it from this link.
http://www.hardkernel.com/main/products/prdt_info.php?g_code=G142060963922Add below two line in ~/.bash_profile and save it to load the SPI TFT LCD drivers automatically.
- Code: Select all
modprobe spicc
modprobe fbtft_device name=odroidc_tft32 rotate=270 gpios=reset:116,dc:115 speed=32000000 cs=0
Orginally I tried to add the drivers into /etc/modules-load.d/odroid.conf, it didn't work correctly.
And create a file "/usr/share/X11/xorg.conf.d/99-odroidc-tftlcd.conf" and paste below configuration to display the X11 on the TFT.
- Code: Select all
Section "Device"
Identifier "C1 fbdev"
Driver "fbdev"
Option "fbdev" "/dev/fb2"
EndSection
Save it and reboot, you can see the RuneAudio on the 3.2inch LCD.
Time to calibrate the resistive touch screen. Install the calibrator.
- Code: Select all
pacman -S xinput_calibrator
Run "DISPLAY=:0.0 xinput_calibrator" on the remote shell and follow the instructions.
then, you will get something on the LCD. Follow the instruction on the LCD screen.
You need to use a touch pen and you will have a set of calibration data from the remote console.
- Code: Select all
[root@runeaudio rules.d]# DISPLAY=:0.0 xinput_calibrator
Setting calibration data: 0, 8000, 0, 4800
Calibrating EVDEV driver for "ADS7846 Touchscreen" id=8
current calibration values (from XInput): min_x=0, max_x=8000 and min_y=0, max_y=4800
INFO: width=320, height=240
[root@runeaudio rules.d]# DISPLAY=:0.0 xinput_calibrator
Calibrating EVDEV driver for "ADS7846 Touchscreen" id=8
current calibration values (from XInput): min_x=0, max_x=8000 and min_y=0, max_y=4800
INFO: width=320, height=240
Doing dynamic recalibration:
Setting calibration data: 208, 3842, 3922, 148
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "208 3842 3922 148"
Option "SwapAxes" "0"
EndSection
Run "nano /etc/X11/xorg.conf.d/99-calibration.conf" put the section and save it.
- Code: Select all
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "208 3842 3922 148"
Option "SwapAxes" "0"
EndSection
Now you can control the RuneAudio GUI on the 3.2inch TFT LCD with the touch screen.