I'm new here and being struggling to have my WaveShare 4" LCD working.
From several tutos and forums, i managed to have the display working ... more or less.
I detail my work :
I use the official 2015-09-24-raspbian-jessie.img image on a Raspberry Pi2 B model
1 - I enable the SPI using the GUI tool (or raspi_config)
2 - I test my TFT driver with the following lines :
Code: Select all
sudo modprobe flexfb nobacklight regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3 width=480 height=320
sudo modprobe fbtft_device name=flexfb speed=16000000 gpios=reset:25,dc:24
While using the LCD as output, the console get displayed correctly on it.
Code: Select all
con2fbmap 1 1Code: Select all
flexfb nobacklight regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3 width=480 height=320
fbtft_device name=flexfb speed=16000000 gpios=reset:25,dc:24The next steps will be switching from the HDMI to the TFT at bootup :
Code: Select all
# set the LCD as default display even at boot, to the end of the line add the arguments
sudo leafpad /boot/cmdline.txt
add --> "fbcon=map:1 fbcon=font:ProFont6x11"
# to load the windows manager on the LCD, add the line in the 99-fturbo.fconf file
sudo leafpad /usr/share/X11/xorg.conf.d/99-fbturbo.conf
--> switch fb0 to fb1Thanks in advance.
Regards,