these screens are really cheap on ebay and Aliexpress like $7 USD.
so this whole guide is inspired from Moosepr's guide below.
https://sudomod.com/forum/viewtopic.php ... 3da377344e
with the frame buffer method there is still a bit of screen tearing visible when entire screen is refreshed. with this new method screen is much more smoother and faster.
Huge thanks to Juj who has written the code and helped me setting up his code in this generic screen.
lets get started.
wiring is pretty simple
Screen<------------>Raspberry Pi 3 or zero
SDO(MISO)<----->PIN 21
LED<-------------->Pin 2 (5V)
SCK<-------------->Pin 23
SDI(MOSI)<----->Pin 19
DC<--------------->Pin 22
RESET<----------->Pin 26
CS<----------------->Pin 24
GND<------------>Pin 20
VCC<------------>Pin 1 (3.3V)
if you used Mooepr's method on your Pi you will have to kill the fbcp to do that;
Code: Select all
sudo pkill fbcp
Code: Select all
#dtparam=spi=on
Code: Select all
git clone https://github.com/juj/fbcp-ili9341.git
cd fbcp-ili9341
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DADAFRUIT_ILI9341_PITFT=ON ..
make -j
sudo ./fbcp-ili9341
Code: Select all
sudo nano /etc/rc.local
Code: Select all
fbcp&
Code: Select all
sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 &