1.3寸OLED显示屏连接Arduino错误使用SSD1306导致出现白边的问题

本文探讨了0.96寸与1.3寸OLED显示屏的SPI和I2C接线区别,以及SSD1306与SH1106驱动芯片的正确使用方法。指出使用错误驱动可能导致的屏幕不稳定与白边问题,并提供了Arduino下的定义示例。

这其实是一个很简单的问题,市场上在售的oled 显示屏分为0.96和1.3 寸两个版本,当然这里面还有SPI和I2C不同接线的区分。

0.96 的驱动芯片是SSD1306,而1.3的驱动芯片是SH1106,由于不小心经常会给1.3用上SSD1306的驱动,导致了oled屏幕出现不稳定的情况,甚至出现白边,如下图所示:

 

如果是使用正确的SH1106驱动,那么则是:

 

一切正常,

二者在Arduino定义下分别是:

U8G2_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0,SCL,SDA,U8X8_PIN_NONE);

U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);

SH1106 I2C的只有一个定义,所以大家还是买0.96的,别买1.3寸的给自己找麻烦。

不过让人奇怪的是后者又占用了70%左右的动态内存,前者只有30%多,另外一个问题就是U8G2出现了显示汉字不全的情况,不知道是怎么回事,没有仔细研究过

1.3OLED全套资料 132 X 64 Dot Matrix OLED/PLED Preliminary Segment/Common Driver with Controller 1 V0.2 Features „ Support maximum 132 X 64 dot matrix panel „ Embedded 132 X 64 bits SRAM „ Operating voltage: - Logic voltage supply: VDD1 = 1.65V - 3.5V - DC-DC voltage supply: VDD2 = 3.0V – 4.2V - OLED Operating voltage supply: External VPP supply = 6.4V - 13.0V Internal VPP generator = 6.4V - 9.0V „ Maximum segment output current: 200μA „ Maximum common sink current: 27mA „ 8-bit 6800-series parallel interface, 8-bit 8080-series parallel interface, 3-wire & 4-wire serial peripheral interface, 400KHz fast I2C bus interface „ Programmable frame frequency and multiplexing ratio „ Row re-mapping and column re-mapping (ADC) „ Vertical scrolling „ On-chip oscillator „ Programmable Internal charge pump circuit output „ 256-step contrast control on monochrome passive OLED panel „ Low power consumption - Sleep mode: <5μA - VDD1=0V,VDD2=3.0V – 4.2V: <5μA - VDD1,2=0V,VPP=3.0V – 4.2V: <5μA „ Wide range of operating temperatures: -40 to +85°C „ Available in COG form, thickness: 300μm General Description SH1106 is a single-chip CMOS OLED/PLED driver with controller for organic/polymer light emitting diode dot-matrix graphic display system. SH1106 consists of 132 segments, 64 commons that can support a maximum display resolution of 132 X 64. It is designed for Common Cathode type OLED panel. SH1106 embeds with contrast control, display RAM oscillator and efficient DC-DC converter, which reduces the number of external components and power consumption. SH1106 is suitable for a wide range of compact portable applications, such as sub-display of mobile phone, calculator and MP3 player, etc.
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值