2014-01-07 Raspbian image with LCD-PI drivers
Posted: Fri Apr 11, 2014 10:38 am
This image supports al HwLevel LCD modules. The major improvement over previous versions is SPI compression support. For LCD-PI33 (newer models), LCD-PI43 and LCD-PI50 it is possible to use on the fly compression of all data that is transferred over SPI. In compression mode 15-bit colors are used but the speedup in GUIs can be very large. It is also possible to use 16 bit colors and no compression. Here is the installation procedure.
1. Download the image from http://www.hwlevel.com/hwlevel/Files/2014-01-07-wheezy-raspbian_lcd-pi.img.zip, unzip it and flash it using Win32DiskImager (or dd command if you are working in Linux). Like in this video, just use our image: https://www.youtube.com/watch?v=c6g4kZy2TTc
2. A new disk labeled 'boot' should appear. Edit config.txt file on this disk. Select a suitable kernel for your LCD-PI and uncomment (delete leading #) in the kernel= line. There is Notepad2 editor on the 'boot' disk which can be used for editing. For example, to use a driver with SPI compression with LCD-PI43 or LCD-PI50 the following line should be uncommented:
3. Configure XWindows: edit xorg.conf file in lcd-pi_xorg folder. Copy the content from a preconfigured xorg.conf_lcd-pi?? in the same folder. For LCD-PI43 and LCD-PI50 the content of xorg.conf should be like this:
4. (optional) If you want LCD-PI to show console edit the cmdline.txt file on 'boot' disk and add fbcon=map:10 to the end of the line (there is only one line in this file, no matter how it is displayed in your editor/browser):
5. Save all opened files and eject the SD card. Boot the RPi (with SD card inserted). LCD-PI should initialize about two seconds after applying power. If you have configured the LCD-PI to show console the boot console should appear otherwise the display should remain dark with backlight on.
1. Download the image from http://www.hwlevel.com/hwlevel/Files/2014-01-07-wheezy-raspbian_lcd-pi.img.zip, unzip it and flash it using Win32DiskImager (or dd command if you are working in Linux). Like in this video, just use our image: https://www.youtube.com/watch?v=c6g4kZy2TTc
2. A new disk labeled 'boot' should appear. Edit config.txt file on this disk. Select a suitable kernel for your LCD-PI and uncomment (delete leading #) in the kernel= line. There is Notepad2 editor on the 'boot' disk which can be used for editing. For example, to use a driver with SPI compression with LCD-PI43 or LCD-PI50 the following line should be uncommented:
- Code: Select all
# uncomment to use kernel with LCD-PI43/LCD-PI50 driver compiled into kernel and SPI compression enabled
kernel=kernel_lcd-pi4+c.img
3. Configure XWindows: edit xorg.conf file in lcd-pi_xorg folder. Copy the content from a preconfigured xorg.conf_lcd-pi?? in the same folder. For LCD-PI43 and LCD-PI50 the content of xorg.conf should be like this:
- Code: Select all
# configuration for LCD-PI43 and LCD-PI50
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
# Option "SwapAxes" "True"
Option "InvertY" "True"
Option "InvertX" "True"
EndSection
4. (optional) If you want LCD-PI to show console edit the cmdline.txt file on 'boot' disk and add fbcon=map:10 to the end of the line (there is only one line in this file, no matter how it is displayed in your editor/browser):
- Code: Select all
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10
5. Save all opened files and eject the SD card. Boot the RPi (with SD card inserted). LCD-PI should initialize about two seconds after applying power. If you have configured the LCD-PI to show console the boot console should appear otherwise the display should remain dark with backlight on.