2.42 inch SPI / I2C OLED display module introduction:
It is 2.42inch 128x64 pixels is mono oled display module, it is SPI interface with 9 pins connection, built in font chip.
The 2.42 inch monochrome oled display, is a graphic passive matrix oled display, it have 128x64 dots, wide viewing angle, wide temperature, high brightness, high contrast, fast response time.
Mono graphic OLED display module screen-2.42inch oled screen:
2.42’’ 128x64 OLED lcd display module could be displayed in wide temperature, its working temperature could be reached to -40 degree, and 80 degree.
2.42 inch OLED screen 128x64 dots is the best display solution in the outdoor display, such as sunlight environment, and also for industrial or medical application that need the wide viewing angle and high brightness display.
2.42" SPI oled display module key parameters:
Display mode: |
Monochrome OLED display |
Diagonal Size |
2.42“ OLED ( diagonal) |
Display Format |
128x64 Dots |
Display module size |
72.0x43.0mm |
Active area |
55.01x27.49mm |
Driver IC |
SSD1309 |
Interface |
SPI interface |
Color |
White/Yellow/Blue/Green |
Drawing:
Pin Connection:
PIN
No.
Symbol
Description
1
GND
Ground
2
VCC
Power input 3.3V
3
SCL
SPI clock
4
SDA
SPI data
5
RES
OLED reset
6
DC
command/data select
7
CS
Chip select, low enable
8
FSO
Font chip data output, low enable / NC
9
CS2
Font chip
select, low enable /NC
SPI OLED display module 2.42" initialized code:
Void OLED_Init(void)
{//OLED reset
OLED_RES_Clr();//RES to 0
delay_ms(200);// delay 200ms
OLED_RES_Set();//RES to 1
//OLED initial
OLED_WR_Byte(0xFD,OLED_CMD);
OLED_WR_Byte(0x12,OLED_CMD);
OLED_WR_Byte(0xAE,OLED_CMD);//--turn off oled panel
OLED_WR_Byte(0xd5,OLED_CMD);//--set display clock divide ratio/oscillator frequency
OLED_WR_Byte(0xA0,OLED_CMD);
OLED_WR_Byte(0xA8,OLED_CMD);//--set multiplex ratio(1to64)
OLED_WR_Byte(0x3f,OLED_CMD);//--1/64duty
OLED_WR_Byte(0xD3,OLED_CMD);//-set display offset Shift Mapping RAM Counter(0x00~0x3F)
OLED_WR_Byte(0x00,OLED_CMD);//-not offset
OLED_WR_Byte(0x40,OLED_CMD);//--set start line address Set Mapping RAM Display Start Line(0x00~0x3F)
OLED_WR_Byte(0xA1,OLED_CMD);//--Set SEG/Column Mapping 0xa0 right left exchange 0xa1 normal
OLED_WR_Byte(0xC8,OLED_CMD);//Set COM/Row Scan Direction 0xc0 upside down 0xc8 normal OLED_WR_Byte(0xDA,OLED_CMD);//--set com pins hardware configuration
OLED_WR_Byte(0x12,OLED_CMD);
OLED_WR_Byte(0x81,OLED_CMD);//--set contrast control register
OLED_WR_Byte(0x7F,OLED_CMD);//Set SEG Output Current Brightness
OLED_WR_Byte(0xD9,OLED_CMD);//--setpre-chargeperiod
OLED_WR_Byte(0x82,OLED_CMD);//Set Pre-Charge as 15 Clocks & Discharge as 1 Clock
OLED_WR_Byte(0xDB,OLED_CMD);//--set vcomh
OLED_WR_Byte(0x34,OLED_CMD);//Set VCOM Deselect Level
OLED_WR_Byte(0xA4,OLED_CMD);//Disable Entire Display On(0xa4/0xa5)
OLED_WR_Byte(0xA6,OLED_CMD);//Disable Inverse Display On(0xa6/a7)
OLED_Clear();
OLED_WR_Byte(0xAF,OLED_CMD);
}
#defineOLED_CMD0//write command
#defineOLED_DATA1//write data
voidOLED_WR_Byte(u8dat,u8cmd)
{u8i;
if(cmd)
OLED_DC_Set();
Else
OLED_DC_Clr();
OLED_CS_Clr();
for(i=0;i<8;i++)
{
OLED_SCL_Clr();
if(dat&0x80)
OLED_SDA_Set();
elseOLED_SDA_Clr();
OLED_SCL_Set();
dat<<=1;
}
OLED_CS_Set();
OLED_DC_Set();
}
Want to know more products and price details, contact us now, email : [email protected]
Key words: SPI OLED, oled 2.42, oled 2.42 inch, 128x64 oled, oled 128x64, 2.42 oled, 2.42" oled, 2.42 inch oled, oled 2.42", 2.42’’ 128x64 oled, 2.42 inch 128x64 oled, oled 128x64 2.42’’, 2.42" SPI OLED,
Tel: +86-755-27205930
Email: [email protected]
Add: No.205,A Zone,Mingyou Purchasing center,Baoyuan Road,Baoan District,Shenzhen,China