Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c1_lcdshield [2016/01/14 10:52] john1117 [How to activate the 3.2inch LCD shield with your ODROID-C1] |
en:c1_lcdshield [2016/11/14 11:04] (current) john1117 [Run Xwindow] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Use to C-3.2inch TFT+Touchscreen Shield ====== | ====== Use to C-3.2inch TFT+Touchscreen Shield ====== | ||
+ | |||
{{http://dn.odroid.com/homebackup/C13_2inchTouchscreenDisplayShieldHome.jpg?500|}} | {{http://dn.odroid.com/homebackup/C13_2inchTouchscreenDisplayShieldHome.jpg?500|}} | ||
Line 11: | Line 12: | ||
[[http://www.hardkernel.com/main/products/prdt_info.php?g_code=G142060963922|Where to buy]] | [[http://www.hardkernel.com/main/products/prdt_info.php?g_code=G142060963922|Where to buy]] | ||
- | ===== Specifications ===== | + | ====== Specifications ====== |
|LCD Type|TFT| | |LCD Type|TFT| | ||
|LCD Interface|SPI| | |LCD Interface|SPI| | ||
Line 22: | Line 23: | ||
|Weight|44gram| | |Weight|44gram| | ||
- | ===== Used pins ===== | + | ====== Used pins ====== |
^Pin Num^Symbol^Description^ | ^Pin Num^Symbol^Description^ | ||
|1, 17|3.3V|Power positive (3.3V power input)| | |1, 17|3.3V|Power positive (3.3V power input)| | ||
Line 39: | Line 40: | ||
|24|LCD_CS|LCD chip selection, low active| | |24|LCD_CS|LCD chip selection, low active| | ||
|26|TP_CS|Touch screen chip selection, low active| | |26|TP_CS|Touch screen chip selection, low active| | ||
- | ===== How to activate the 3.2inch LCD shield with your ODROID-C1 ===== | + | ====== How to activate the 3.2inch LCD shield with your ODROID-C1 ====== |
You need a HDMI connection or a Serial console connection to follow below instruction. | You need a HDMI connection or a Serial console connection to follow below instruction. | ||
+ | ===== Configuring framebuffer and Touch driver ===== | ||
=== 0. Update your Kernel === | === 0. Update your Kernel === | ||
<code> | <code> | ||
Line 56: | Line 57: | ||
</code> | </code> | ||
- | === 2. To run Xwindow create a file "/usr/share/X11/xorg.conf.d/99-odroidc-tftlcd.conf" === | + | You will have a new frame buffer /dev/fbX\\ |
- | And then, write following contents in that file. | + | Find a framebuffer node. |
+ | ls /dev/fb* | ||
+ | /dev/fb2 | ||
+ | cat /sys/class/graphics/fb2/name | ||
+ | fb_odroidc_tft32 | ||
+ | ===== Run Console ===== | ||
+ | === 0. Install package === | ||
+ | sudo apt-get install fbset | ||
+ | === 1. Run con2fbmap === | ||
+ | con2fbmap <console> <framebuffer> | ||
+ | sudo con2fbmap 1 2 | ||
+ | === 2. Change foreground virtual terminal === | ||
+ | The command chvt N makes /dev/ttyN the foreground terminal. | ||
+ | sudo chvt 1 | ||
+ | chvt 1 : console\\ | ||
+ | chvt 7 : X11 | ||
+ | ===== Run Xwindow ===== | ||
+ | === 0. Create a new config file === | ||
+ | sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old | ||
+ | sudo vi /etc/X11/xorg.conf | ||
+ | === 1. And then, add following lines in "/etc/X11/xorg.conf" file. === | ||
<code> | <code> | ||
Section "Device" | Section "Device" | ||
- | Identifier "C1 fbdev" | + | Identifier "C fbdev" |
Driver "fbdev" | Driver "fbdev" | ||
Option "fbdev" "/dev/fb2" | Option "fbdev" "/dev/fb2" | ||
Line 67: | Line 88: | ||
</code> | </code> | ||
- | === 3. startx === | + | === 2. Run === |
- | sudo startx | + | sudo /etc/init.d/lightdm restart |
- | === 4. console === | + | sudo chvt 7 |
- | **Disable xorg on your ODROID-C1**\\ | + | ===== Touch Calibration ===== |
- | There is two ways to disable.\\ | + | |
- | + | ||
- | 1) Way to use the odroid-utility\\ | + | |
- | sudo odroid-utility | + | |
- | + | ||
- | Use up / down cursor keys to select the "Xorg On/Off" menu option and hit. And then, select "Disable Xorg". | + | |
- | + | ||
- | 2) Way to use native\\ | + | |
- | Write a word "manual" into /etc/init/lightdm.override | + | |
- | + | ||
- | sudo vi /etc/init/lightdm.override | + | |
- | + | ||
- | **Reboot** | + | |
- | sudo reboot | + | |
- | **Run con2fbmap "con2fbmap <console> <framebuffer>"** | + | |
- | sudo apt-get install fbset | + | |
- | con2fbmap 1 2 | + | |
- | + | ||
- | ===== Console ===== | + | |
- | * [[C1_TFT_AUTOCONSOLE | Auto start console mode]] | + | |
- | ===== X Windows ===== | + | |
- | * [[C1_TFT_AUTOX | Auto start the X]] | + | |
* [[C1_TFT_TOUCH | How to enable & calibrate your touchscreen]] | * [[C1_TFT_TOUCH | How to enable & calibrate your touchscreen]] | ||
+ | ===== Auto Run ===== | ||
+ | * [[C1_TFT_AUTOCONSOLE | Automatically start console mode]] | ||
+ | * [[C1_TFT_AUTOX | Automatically start desktop GUI mode]] | ||