• sales

    +86-0755-88291180

0.85inch ScreenKey LCD W User Guide

Specifications

ParameterSpecification
Operating Voltage3.3V / 5V
Resolution128 × 128 pixels
Display DriverST7735
Display Color65K
Display Interface4-wire SPI
Display PanelIPS
Display Size15.21 × 15.21 (mm)
Pixel Size118.8 × 118.8 (μm)

Mechanical Switch Specifications

ParameterSpecification
Actuation Force50.00 ± 10.00 (gf)
Actuation Travel1.20 ± 0.30 (mm)
Spring Length15.50 (mm)
Bottoming Force55.00 ± 10.00 (gf)
Total Travel2.80 ± 0.25 (mm)
Lifespan50 million cycles

LCD Interface Description

PinFunction9Pin Pin Number
GNDPower Ground1
LEDKLED Backlight Cathode (negative electrode)2
LEDALED Backlight Anode (positive electrode)3
VDDAnalog Power4
GNDPower Ground5
GNDPower Ground6
DCData/Command: Low = command, High = data7
CSChip Select, active low8
SCLKSPI Clock Input9
DINSPI Data Input10
RSTReset, active low11
GNDPower Ground12

SPI Control Interface Description

PinFunction9Pin Pin Number
KEYButton1
DCData/Command: Low = command, High = data2
CSChip Select, active low3
SCLKSPI Clock Input4
DINSPI Data Input5
GNDPower Ground6
VCC3.3V Power Input7
PWMLCD Backlight Pin8
RSTReset, active low9

Key Dimensions


Key Module Dimensions



ESP-IDF

This chapter contains the following sections. Please read as needed:

ESP-IDF Getting Started

New to ESP32 ESP-IDF development and looking to get started quickly? We have prepared a general Getting Started Tutorial for you.

Please Note: This tutorial uses the ESP32-S3-Zero as a teaching example, and all hardware code is based on its pinout. Before you start, it is recommended that you check the pinout of your development board to ensure the pin configuration is correct.

Setting Up Development Environment

NOTE

The following guide uses Windows as an example, demonstrating development using VS Code + the ESP-IDF extension. macOS and Linux users should refer to the official documentation.

Install the ESP-IDF Development Environment

  1. Download the installation manager from the ESP-IDF Installation Manager page. This is Espressif's latest cross-platform installer. The following steps demonstrate how to use its offline installation feature.

    Click the Offline Installer tab on the page, then select Windows as the operating system and choose your desired version from the filter bar.


    After confirming your selection, click the download button. The browser will automatically download two files: the ESP-IDF Offline Package (.zst) and the ESP-IDF Installer (.exe).


    Please wait for both files to finish downloading.

  2. Once the download is complete, double-click to run the ESP-IDF Installer (eim-gui-windows-x64.exe).

    The installer will automatically detect if the offline package exists in the same directory. Click Install from archive.


    Next, select the installation path. We recommend using the default path. If you need to customize it, ensure the path does not contain Chinese characters or spaces. Click Start installation to proceed.


  3. When you see the following screen, the ESP-IDF installation is successful.


  4. We recommend installing the drivers as well. Click Finish installation, then select Install driver.


Install Visual Studio Code and the ESP-IDF Extension

  1. Download and install Visual Studio Code.

  2. During installation, it is recommended to check Add "Open with Code" action to Windows Explorer file context menu to facilitate opening project folders quickly.

  3. In VS Code, click the Extensions icon Extensions Icon in the Activity Bar on the side (or use the shortcut Ctrl + Shift + X) to open the Extensions view.

  4. Enter ESP-IDF in the search box, locate the ESP-IDF extension, and click Install.


  5. For ESP-IDF extension versions ≥ 2.0, the extension will automatically detect and recognize the ESP-IDF environment installed in the previous steps, requiring no manual configuration.

Hardware Connection


Example

The ESP-IDF examples are located in the ESP-IDF directory of the example package.

DemoBasic Description
01_WoodenFishImplements color cycling and a dynamic "wooden fish" knock effect
02_phototestImplements switching images on button press

01_WoodenFish

Example Description

  • This example demonstrates how to drive the 0.85inch ScreenKey Module with an ESP32‑S3 development board. It implements a color‑cycle test and button function test, while also providing image display capability based on the LVGL graphics library. The dynamic "wooden fish" knock effect can be triggered by single‑click, double‑click, or long‑press actions.

Hardware Connection

0.85inch ScreenKey ModuleESP32-S3-DEV-KIT-N16R8-M
VCC3.3V
GNDGND
LCD_DINGP7
LCD_CLKGP6
LCD_CSGP5
LCD_DCGP4
LCD_RSTGP38
LCD_BLGP40
LCD_KEYGP39
  • Connect the screen to the development board using a GH1.25 9PIN cable
  • Connect the development board to the computer

Code Analysis

  • app_main():
    • Initializes the display, button, and LVGL graphics library, then implements the color‑cycle test and the "wooden fish" knock effect, laying the runtime foundation for subsequent graphical interactive applications.

Operation Result

  • LCD Color Cycle Test:



  • LVGL "Wooden Fish" effect:




02_phototest

Example Description

  • This example demonstrates how to drive the 0.85inch ScreenKey Module with an ESP32‑S3 development board, implementing image switching on button press.

Hardware Connection

0.85inch ScreenKey ModuleESP32-S3-DEV-KIT-N16R8-M
VCC3.3V
GNDGND
LCD_DINGP7
LCD_CLKGP6
LCD_CSGP5
LCD_DCGP4
LCD_RSTGP38
LCD_BLGP40
LCD_KEYGP39
  • Connect the screen to the development board using a GH1.25 9PIN cable
  • Connect the development board to the computer

Code Analysis

  • app_main():

    • Initializes the display, button, and LVGL graphics library, implementing image switching on button press.

Operation Result

  • LCD Color Cycle Test:





Working with Arduino

This chapter contains the following sections. Please read as needed:

Arduino Getting Started

New to Arduino ESP32 development and looking for a quick start? We have prepared a comprehensive Getting Started Tutorial for you.

Note: This tutorial uses the ESP32-S3-Zero as a reference example, and all hardware code is based on its pinout. Before you start, we recommend checking the pinout of your development board to ensure the pin configuration is correct.

Setting Up Development Environment

1. Installing and Configuring Arduino IDE

Please refer to the tutorial Installing and Configuring Arduino IDE to download and install the Arduino IDE and add ESP32 support.

2. Installing Libraries

  • When installing Arduino libraries, there are typically two methods: Install Online and Install Offline. If the library installation requires Install Offline, you must use the provided library file.
  • For most libraries, users can easily search for and install them via the Arduino IDE's online Library Manager. However, some open-source or custom libraries are not synchronized to the Arduino Library Manager and therefore cannot be found through online search. In this case, users can only install these libraries manually via offline methods.

Installation Steps:

  1. Download the example package.

    INFO

    The path to the Arduino libraries folder is typically: c:\Users\<username>\Documents\Arduino\libraries.

    You can also locate it in the Arduino IDE by going to File > Preferences and checking the "Sketchbook location". The libraries folder is the libraries subfolder within this path.

  2. For other installation methods, please refer to: Arduino Library Management Tutorial.

Board Installation Instructions for 0.85inch ScreenKey Module

Board NameBoard Installation RequirementVersion Requirement
Arduino AVR Boards"Offline" / "Online" installationv1.8.6

Hardware Connection


Example

The Arduino_Uno_test demo is located in the Arduino-uno directory of the example package.

01_Arduino_Uno_test

Example Description

  • This example implements automatic screen self-test on power‑up. The button can be used to cycle through 7 display effects (solid colors, images, Chinese/English text, graphic drawing), demonstrating the LCD display and button interaction functions.

Hardware Connection

0.85inch ScreenKey ModuleArduino-Uno
VCC3.3V
GNDGND
LCD_DINGP1
LCD_CLKGP13
LCD_CSGP10
LCD_DCGP7
LCD_RSTGP8
LCD_BLGP9
LCD_KEYGP6
  • Connect the screen to the development board using a GH1.25 9PIN cable
  • Connect the development board to the computer

Code Analysis

  • setup():

    • Initializes hardware, LCD, and canvas; performs a startup display self‑test; initializes the button.
  • loop():

    • Main system loop, continuously calls the button detection function.
  • CheckKeyPress():

    • Debounced button detection; cycles through 7 LCD display modes according to the number of button presses.

Operation Result

  • Automatic screen self‑test on power‑up; pressing the button cycles through 7 display effects (solid colors, images, Chinese/English text, graphic drawing), demonstrating LCD display and button interaction.


Resources

1. Hardware Resources

2. Example

3. Software

4. Other Resource Links

Support

Monday-Friday (9:30-6:30) Saturday (9:30-5:30)

Email: services01@spotpear.com

TAG: Raspberry Pi 5 IR Camera ESP32-S3FH4R2 Matrix 8x8 RGB-LED-WiFi Bluetooth QST Attitude Gyro Sensor QMI8658C Arduino Python JETSON-IO-BASE-A Milk-V Duo S Usage of USB Type A interface ESP32-C3FN4 ESP32 C6 Development Board 1.47 inch LCD Display Screen ST7789 For Arduino WiFi6/LVGL/HMI Onborad SD-Port/RGB-LED Sipeed Lichee Tang Nano 4K FPGA MINI Development Board W1NSR-LV4C GOAI Gowin Pi5 PCIe Raspberry Pi 7inch DSI Raspberry Pi CM5 to Pi 5 Expansion Board With USB microphone & Audio Port Retail electronic Labe Serial Server Image extraction User Guide Jetson Sipeed NanoKVM Cube KVM HDMI Remote OS Control Manager Install /Power Control /Remote Desktop Server UART Raspberry Pi HQ Camera Official Original High Quality For M12 Lenses 12.3MP IMX477 Sensor X1300 X1300-A2 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also Modbus-Series-BootLoader-Description User Guide SpotPear Industrial Isolated RS485 TO ETH (C) RJ45 Converter Wall/Rail-Mount For Modbus