<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL14972_%E2%80%93_1.3inch_LCD_HAT%2Fen</id>
	<title>WSAL14972 – 1.3inch LCD HAT/en - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL14972_%E2%80%93_1.3inch_LCD_HAT%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL14972_%E2%80%93_1.3inch_LCD_HAT/en&amp;action=history"/>
	<updated>2026-10-23T21:20:17Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in JW Tech Wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.jw-tech.eu/index.php?title=WSAL14972_%E2%80%93_1.3inch_LCD_HAT/en&amp;diff=1990&amp;oldid=prev</id>
		<title>JWTechPublisher: Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex</title>
		<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL14972_%E2%80%93_1.3inch_LCD_HAT/en&amp;diff=1990&amp;oldid=prev"/>
		<updated>2026-09-05T22:40:42Z</updated>

		<summary type="html">&lt;p&gt;Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOINDEX__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Documentation notice:&amp;#039;&amp;#039;&amp;#039; This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
The Waveshare 1.3inch LCD HAT is a 240x240 pixel IPS display for the Raspberry Pi via SPI. It uses the ST7789VM controller and connects through GPIO pins. The guide covers enabling SPI, driver installation (bcm2835, wiringPi, lgpio), Python demos, and the FBCP framebuffer driver.&lt;br /&gt;
&lt;br /&gt;
== Related products at JW Tech ==&lt;br /&gt;
* [https://shop.jw-tech.eu/p/WSAL14972 WSAL14972 – 240x240, 1.3inch IPS LCD display HAT for Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Technical overview ==&lt;br /&gt;
* Resolution: 240 (H) x 240 (V) pixels; display size 23.4 mm x 23.4 mm; pixel pitch approx. 0.0975 mm/pixel.&lt;br /&gt;
* Interface: 4-wire SPI (SCLK, MOSI, CS, DC, RST, BL).&lt;br /&gt;
* Operating voltage: 3.3 V.&lt;br /&gt;
* Controller: ST7789VM – single-chip driver for graphic TFT-LCDs up to 262K colors; supports RGB444/RGB565/RGB666; demo codes use RGB565.&lt;br /&gt;
* Raspberry Pi pinout: KEY1=P21, KEY2=P20, KEY3=P16; Joystick UP=P6, DOWN=P19, LEFT=P5, RIGHT=P26, PRESS=P13; SCLK=P11/SCLK, MOSI=P10/MOS, CS=P8/CE0, DC=P25, RST=P27, BL=P24.&lt;br /&gt;
* SPI communication: CPOL=0 and CPHA=0 correspond to SPI mode 0 (default).&lt;br /&gt;
* FBCP driver: open-source project using partial refresh and DMA, achieving up to 60 fps; requires a 32-bit Raspberry Pi system because FBCP is currently not compatible with 64-bit systems.&lt;br /&gt;
* For desktop display via FBCP, set hdmi_cvt=300 300 60 1 0 0 0, hdmi_group=2, hdmi_mode=87 in /boot/config.txt; on Pi 4B, comment out dtoverlay=vc4-fkms-v3d and max_framebuffers=2.&lt;br /&gt;
* Analog mouse: the joystick drives a virtual mouse via PyMouse/PyUserInput; the script must run under the graphical interface, not over SSH.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Commands and examples – verify before use:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo raspi-config # then enable SPI under Interfacing Options&lt;br /&gt;
sudo reboot&lt;br /&gt;
sudo wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz &amp;amp;&amp;amp; sudo tar zxvf bcm2835-1.71.tar.gz &amp;amp;&amp;amp; cd bcm2835-1.71/ &amp;amp;&amp;amp; sudo ./configure &amp;amp;&amp;amp; sudo make &amp;amp;&amp;amp; sudo make check &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
sudo apt-get install wiringpi&lt;br /&gt;
wget https://files.waveshare.com/wiki/common/wiringpi-latest.deb &amp;amp;&amp;amp; sudo dpkg -i wiringpi-latest.deb&lt;br /&gt;
sudo git clone https://github.com/WiringPi/WiringPi &amp;amp;&amp;amp; cd WiringPi &amp;amp;&amp;amp; sudo ./build&lt;br /&gt;
wget https://github.com/joan2937/lg/archive/master.zip &amp;amp;&amp;amp; unzip master.zip &amp;amp;&amp;amp; cd lg-master &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
sudo apt-get install python3-pip &amp;amp;&amp;amp; sudo apt-get install python3-pil &amp;amp;&amp;amp; sudo apt-get install python3-numpy &amp;amp;&amp;amp; sudo pip3 install spidev&lt;br /&gt;
sudo apt-get install p7zip-full -y &amp;amp;&amp;amp; wget https://files.waveshare.com/upload/b/bd/1.3inch_LCD_HAT_code.7z &amp;amp;&amp;amp; 7z x 1.3inch_LCD_HAT_code.7z -r -o./1.3inch_LCD_HAT_code &amp;amp;&amp;amp; sudo chmod 777 -R 1.3inch_LCD_HAT_code&lt;br /&gt;
cd c &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo ./main&lt;br /&gt;
cd python &amp;amp;&amp;amp; sudo python main.py &amp;amp;&amp;amp; sudo python key_demo.py&lt;br /&gt;
sudo nano /boot/config.txt # add: gpio=6,19,5,26,13,21,20,16=pu&lt;br /&gt;
sudo apt-get install cmake -y &amp;amp;&amp;amp; wget https://files.waveshare.com/upload/f/f9/Waveshare_fbcp.7z &amp;amp;&amp;amp; 7z x Waveshare_fbcp.7z -o./waveshare_fbcp &amp;amp;&amp;amp; cd waveshare_fbcp &amp;amp;&amp;amp; mkdir build &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; cmake -DSPI_BUS_CLOCK_DIVISOR=20 -DWAVESHARE_1INCH3_LCD_HAT=ON -DBACKLIGHT_CONTROL=ON -DSTATISTICS=0 .. &amp;amp;&amp;amp; make -j &amp;amp;&amp;amp; sudo ./fbcp&lt;br /&gt;
sudo cp ~/waveshare_fbcp/build/fbcp /usr/local/bin/fbcp &amp;amp;&amp;amp; sudo nano /etc/rc.local # add fbcp&amp;amp; before exit 0&lt;br /&gt;
sudo apt-get install python3-xlib &amp;amp;&amp;amp; sudo pip3 install PyMouse &amp;amp;&amp;amp; sudo pip3 install unix &amp;amp;&amp;amp; sudo pip3 install PyUserInput &amp;amp;&amp;amp; wget https://files.waveshare.com/upload/d/d3/Mouse.7z &amp;amp;&amp;amp; 7z x Mouse.7z &amp;amp;&amp;amp; sudo python3 mouse.py&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes and version constraints ==&lt;br /&gt;
* The source contains placeholders such as &amp;amp;#123;&amp;amp;#123;&amp;amp;#123;name2&amp;amp;#125;&amp;amp;#125;&amp;amp;#125; and &amp;amp;#123;&amp;amp;#123;&amp;amp;#123;userDefinedInfo&amp;amp;#125;&amp;amp;#125;&amp;amp;#125;; these were ignored as they are not valid technical data.&lt;br /&gt;
* FBCP explicitly requires a 32-bit Raspberry Pi system; it does not work on 64-bit systems according to the source.&lt;br /&gt;
* On the Bookworm system, only the lgpio library is available; bcm2835 and wiringPi cannot be installed or used there.&lt;br /&gt;
* The FBCP resolution setting (hdmi_cvt=300 300 60 ...) should be slightly larger than the native LCD resolution but not too high, otherwise fonts become blurry; exact values depend on the desired scaling ratio and require manual adjustment.&lt;br /&gt;
* The mouse script runs only under the graphical interface, not over SSH; the path /home/pi/mouse.py assumes the script was placed there.&lt;br /&gt;
* Some commands refer to older system versions (pre-raspbian_lite-2019-06-20); on newer versions the configuration may differ.&lt;br /&gt;
* ESP32 compatibility (30-pin module) is mentioned, but the specific pin mappings (DIN→23, CLK→18, CS→5, DC→4, RST→0) apply only to that specific ESP32 model and should be verified before use.&lt;br /&gt;
&lt;br /&gt;
== Source and revision record ==&lt;br /&gt;
* [https://www.waveshare.com/wiki/1.3inch_LCD_HAT 1.3inch LCD HAT - Waveshare Wiki]&lt;br /&gt;
* Source revision: 110855&lt;br /&gt;
* Captured: 2026-08-31T02:35:13+00:00&lt;br /&gt;
* SHA-256: &amp;lt;code&amp;gt;3b448df964e7edcd09ee80300f1b7467a92edb365a2c4be6f4a107f3d8b842e2&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>JWTechPublisher</name></author>
	</entry>
</feed>