

Note: Different from the traditional SPI protocol, the data line from the slave to the master is hidden since the device only has display requirements. This LCD uses a four-wire SPI communication interface, which can greatly save the GPIO port, and the communication speed will be faster. The LCD supports 12-bit, 16-bit, and 18-bit input color formats per pixel, namely RGB444, RGB565, and RGB666 three color formats, this demo uses RGB565 color format, which is also a commonly used RGB format.įor most LCD controllers, the communication mode of the controller can be configured, usually with an 8080 parallel interface, three-wire SPI, four-wire SPI, and other communication methods.

The color of the wiring in the picture is for reference only, and the actual color shall prevail.) The 2inch LCD uses the PH2.0 8PIN interface, which can be connected to the Raspberry Pi according to the above table: (Please connect according to the pin definition table. Use the pin header or PH2.0 8PIN interface, you need to connect according to the following table: Please connect the LCD to your Raspberry Pi by the 8PIN cable according to the table below: Interface Description Raspberry Pi hardware connection Operating voltage: 3.3V/5V (Please ensure that the power supply voltage and logic voltage are consistent, otherwise it will not work properly.).We provide complete supporting Raspberry Pi demos (BCM2835 library, WiringPi library, and Python demos), STM32 demos, and Arduino demos.The LCD has an internal controller with basic functions, which can be used to draw points, lines, circles, and rectangles, and display English, Chinese as well as pictures. As a 2-inch IPS display module with a resolution of 240 * 320, it uses an SPI interface for communication.

This product provides Raspberry Pi, STM32, Arduino examples. 9.5 Run the Corresponding Demo According to the Screen You Purchased.5.2 Method 1: Use a script (recommended).
