-
-
Notifications
You must be signed in to change notification settings - Fork 12
Step 2
Eugene Andruszczenko edited this page Mar 5, 2018
·
1 revision
We will now be connecting the 2.8" ILI9341 TFT LCD module, so you can set your other keyboard aside for now
From you computer (not the Raspberry Pi)
Enter the following to add a Loadable Kernel Module for the TFT Device
sudo modprobe fbtft_device custom name=fb_ili9341 gpios=reset:25,dc:24 speed=80000000 fps=60 bgr=1 rotate=90
Confirm the module has been loaded
dmesg | tail
See the TFT LCD module details
fbset -fb /dev/fb1
Lets test that we can show 'stuff' on the TFT LCD module (this will simply add static noise)
cat /dev/urandom > /dev/fb1
Map the console to the TFT LCD Module you should now see a scaled terminal window on the TFT
con2fbmap 1 1
Should you ever need to stop the mapping, reverse the command
# switch tft to hdmi
con2fbmap 1 0
Note: if you need to remove the module, simply
sudo modprobe -r fbtft_device