1. Product Overview
This module integrates a 2.0-inch SPI interface display with an EC11 rotary encoder on a single board. While the display and encoder are distinct components, their combined presence on one board offers a compact and aesthetically pleasing solution for DIY projects. An additional independent button is also included, providing flexible control options based on specific application needs.


2. Specifications
| Feature | Description |
|---|---|
| Display Type | TFT LCD |
| Display Size | 2.0 inch |
| Resolution | 128x64 pixels |
| Interface | SPI (for display), IIC (for display, if supported by specific model), EC11 (Rotary Encoder) |
| Rotary Encoder | EC11 with push button functionality |
| Customization | Yes |
| Origin | Mainland China |
| Package Dimensions (L x W x H) | 9 cm x 8 cm x 3 cm |
| Package Weight | 0.054 kg |
3. Pin Definitions
Understanding the pinout is crucial for proper integration with microcontrollers like Arduino, ESP32, or Raspberry Pi. Refer to the diagram below for visual reference.

- GND: Ground connection.
- VCC: Positive power supply input.
- SCL: Clock interface for SPI communication with the TFT screen.
- SDA: Data interface for SPI communication with the TFT screen.
- RES: Reset pin for the display module.
- DC: Data/Command selection pin for the display.
- CS: Chip Select signal for the display, active low.
- BLK: TFT backlight adjustment pin. By default, it is fully-on and can be left unconnected if no adjustment is needed.
- DO: Digital Output pin, can be used as a menu return or confirmation button.
- PUSH: Key interface for EC11 Rotary Encoder (Phase A and Phase B).
- KO: Confirmation pin for the rotary encoder.
4. Setup Instructions
This section outlines the general steps for connecting and initializing your 2.0 Inch TFT LCD Display with Rotary Encoder module.
- Power Connection: Connect the VCC pin to your microcontroller's 3.3V or 5V power supply (check module's voltage compatibility) and GND to the ground.
- SPI Display Connection:
- Connect SCL to your microcontroller's SPI Clock pin.
- Connect SDA to your microcontroller's SPI Data (MOSI) pin.
- Connect RES to a digital output pin on your microcontroller.
- Connect DC to a digital output pin on your microcontroller.
- Connect CS to a digital output pin on your microcontroller.
- Rotary Encoder Connection:
- Connect the PUSH pins (Phase A and Phase B) to two separate digital input pins on your microcontroller. These pins will detect rotation.
- Connect the KO pin (encoder button) to another digital input pin on your microcontroller.
- Backlight (Optional): The BLK pin controls the backlight. It is typically pulled high by default for full brightness. If you need to control the backlight, connect it to a PWM-capable digital output pin on your microcontroller.
- Software Setup: Install the necessary display and rotary encoder libraries for your chosen development environment (e.g., Arduino IDE, PlatformIO). Refer to the library documentation for specific initialization and usage examples.
5. Operating Instructions
Once the module is wired and the software is set up, you can begin programming its functionality.
5.1 Display Operation
- Initialization: Use the display library's initialization function, passing the correct pin assignments for SCL, SDA, RES, DC, and CS.
- Drawing: Utilize library functions to draw text, shapes, and images on the 128x64 pixel screen.
- Updating: After drawing, call the display update function to render the changes on the screen.
5.2 Rotary Encoder Operation
- Reading Rotation: Use an encoder library or implement interrupt-driven code to detect changes on the PUSH (Phase A and B) pins. This will allow you to determine clockwise or counter-clockwise rotation.
- Reading Button Press: Monitor the KO pin for a low signal to detect when the encoder's integrated button is pressed.
6. Maintenance
- Cleaning: Gently wipe the display surface with a soft, dry, anti-static cloth. Avoid using harsh chemicals or abrasive materials.
- Storage: Store the module in a dry, dust-free environment away from direct sunlight and extreme temperatures.
- Handling: Always handle the module by its edges to avoid touching the display surface or damaging components.
7. Troubleshooting
- Display Not Lighting Up:
- Check VCC and GND connections for proper power supply.
- Ensure the BLK pin is correctly configured or left unconnected if full brightness is desired.
- Verify display initialization in your code.
- No Display Output / Garbled Text:
- Double-check all SPI pin connections (SCL, SDA, RES, DC, CS).
- Confirm that the correct display library and initialization parameters are used for a 128x64 SPI TFT.
- Ensure your microcontroller's SPI bus is configured correctly.
- Rotary Encoder Not Responding:
- Verify connections for PUSH (Phase A/B) and KO pins.
- Check your code for correct pin assignments and interrupt handling (if used) for the encoder.
- Ensure pull-up resistors are enabled for input pins if not externally provided.
- Module Not Detected by Microcontroller:
- Confirm all power and ground connections are secure.
- Check for short circuits or incorrect wiring.
8. User Tips
- Start Simple: Begin by testing the display and rotary encoder functionalities separately before integrating them into a complex project.
- Library Compatibility: Ensure the display and encoder libraries you choose are compatible with your specific microcontroller (e.g., Arduino Uno, ESP32, Raspberry Pi Pico).
- Power Supply: Provide a stable power supply to avoid unexpected behavior or damage to the module.
- Code Examples: Look for example code provided by library developers or online communities for quick setup and testing.
9. Warranty and Support
For technical support, troubleshooting assistance, or warranty inquiries, please contact the seller or manufacturer directly through the platform where the product was purchased. Provide your order details and a clear description of the issue for efficient service.