


The terms after the name of the kernel module on each line are called parameters, and parameters can be changed to adjust the properties of each kernel module.Ĭurrently, the only module that is set to load automatically is snd-bcm2835, which is the module for the Raspberry Pi’s Broadcom processor.Īdd this code below the snd-bcm2835 line to support the fbtft_device and ads7846_device modules: spi-bcm2708įbtft_device name=waveshare32b gpios=dc:22,reset:27 speed=48000000 The first term of each line in this file is the name of a kernel module that will be loaded automatically at boot time. Placing a “#” in front of the line tells the computer to ignore it: Remove the spi-bcm2708 driver from the blacklist by commenting out the line that says blacklist spi-bcm2708. Enter this at the command prompt to edit the file: If you’re using a version of Raspbian that was released before 1-31-2015, you’ll need to enable SPI by removing the entry from the blacklist file. If you’re using a version of Raspbian released after 1-31-2015, this can be done in the raspi-config menu. By default, SPI communication is disabled, so you need to enable it. The Pi communicates with the touchscreen through SPI (serial peripheral interface). Watch the video tutorial for a quick overview of the steps: So just follow the steps below to get your LCD touchscreen working on the Raspberry Pi. Here is a good article explaining Linux kernel modules, devices, and drivers, which you may want to read for some background information. The standard version of Raspbian does not include the drivers for LCD touchscreens, so we will need to install and configure them manually. One set of drivers is for the actual LCD display screen, and the other set of drivers is for the touchscreen sensors. There are two types of drivers we need to be concerned with here. What we need to do to get the LCD working is install and configure the FBTFT drivers created by notro.
