Enable SPI under "Interfacing options"
$ sudo nano /etc/modules
Append two modules (in two lines) :
spi-bcm2835
fbtft_device
# /etc/modprobe.d/fbtft.conf
options fbtft_device name=adafruit18_green gpios=reset:27,dc:25,cs:8,led:24 speed=40000000 bgr=1 fps=60 custom=1 height=128 width=128 rotate=180
-
Reboot you Raspberry Pi
$ sudo reboot
-
Once rebooted, check if new fb device is present
$ sudo ls /dev # /dev/fb1 must appear $ sudo apt-get install fbset # framebuffer utility $ sudo fbset -i -fb /dev/fb1 # should return information of screen.
Add or modify the following options in the file:
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
hdmi_force_hotplug=1
hdmi_cvt=128 128 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
display_rotate=1
#disable uart to boost boot speed
enable_uart=0
start_x=0
Then reboot:
$ sudo reboot
In order to display console and other things on the screen.
$ sudo apt-get install cmake
$ git clone https://github.com/tasanakorn/rpi-fbcp
$ cd rpi-fbcp/
$ mkdir build
$ cd build/
$ cmake ..
$ make
$ sudo install fbcp /usr/local/bin/fbcp
$ fbcp
Right now you should see the content of the screen on the pHAT screen.
Edit the file /etc/rc.local
. Add before the exit 0
line:
fbcp&
Exactly the same issue ... Amazon says S .. but still white screen and no way to see fb1 also for me..