1.3inch OLED HAT(A)

Product Overview

This 1.3-inch OLED display expansion module, powered by the SH1106 controller, features 128×64 resolution and integrates an on-board 5 direction joystick with three programmable buttons. Dual slide switches enable seamless SPI/I²C communication mode selection. Designed for Raspberry Pi 40pin GPIO headers, the module operates via SPI or I²C interfaces, delivering ultimate flexibility.

Product Features

  • 1.3inch OLED Display with 128×64 resolution
  • SPI/I²C Protocol Support : Toggle between modes via hardware switch
  • On-board Controls: 5direction joystick and 3 programmable buttons
  • Integrated SH1106 Display Controller

Product Parameters

Size

65mm(Length)x 30mm(width)

Pixels

128x 64

Display Color

black and white

Signal interface

SPI/ I2C

Supply voltage

3.3V

OLED display area

29.42×14.70

Driver chip

SH1106

Product Usage

On-board switches SW1 and SW2 are used for SPI/I²C mode selection. Set the switches to corresponding positions according to the configuration table for protocol switching.

IIC

SPI

SW1

0

1

SW2

0

1

Module Resource Profile

Module Resource Profile is shown in the figure below:

User joystick

1.3inch OLED display

③ Three user programmable buttons

④ SPI/I²C Mode Selector Switch

Raspberry Pi 40pin GPIO Female Header

Raspberry Pi Wiring Definition

The bullseye system example program for the Raspberry Pi uses the pin definitions number in wiringPi, and the bookworm system uses the pin definition of the BCM number. The definition of the wiring with the Raspberry Pi motherboard is shown in the following table:

1.3inch OLED HAT A

WiringPi number

BCM number

VCC

3.3V

GND

GND

DIN

SPI:P12 / I2C:P8

SPI:D10 / I2C:D2

CLK

SPI:P14 / I2C:P9

SPI:D11 / I2C:D3

CS

P10

D8

D/C

P6

D25

RST

P0

D17

LEFT

P25

D26

DOWN

P23

D13

CENT

P21

D5

UP

P24

D19

K1

P27

D16

K2

P28

D20

K3

P29

D21

Appendixes

2.1 Product Precautions and Maintenance

2.1.1 Precautions

  • Do not plug or unplug modules while they are powered on.
  • Follow all warnings and guidelines provided on the product.
  • Keep the product dry. In case of accidental splashing or immersion in any liquid, immediately disconnect the power and thoroughly dry the product.
  • Ensure proper ventilation and heat dissipation in the operating environment to avoid damage to components due to high temperatures.
  • Do not use or store the product in dusty or dirty environments.
  • Avoid using the product in environments with frequent temperature changes to prevent condensation damage to the components.
  • Handle the product gently, as dropping, hitting, or severe shaking may damage the circuits and components.
  • Do not clean the product with organic solvents or corrosive liquids.
  • Do not attempt to repair or dismantle the product by yourself. In case of any malfunction, please contact our company for repairs. Unauthorized repairs may damage the product, and any resulting damage will not be covered under warranty.

2.1.2 Maintenance

  • Address: Room 9#-211, Building 9, Minhua Technology Information Incubation Base, No.D-10-2, Chaoyang Road, Qixing District, Guilin, Guangxi, China.
  • Contact Person: After-Sales Maintenance Department