当前位置:网站首页>解决u8glib只显示一行文字或者不显示的问题
解决u8glib只显示一行文字或者不显示的问题
2022-06-27 00:10:00 【arenascat】
刚遇到的问题,OLED在使用u8glib这个库时候,出现了显示不全的情况,我在初始化时候调用了这两个,各有千秋,一个是只能显示两行文字一个是完全不显示
U8G2_SSD1306_128X64_NONAME_2_HW_I2C u8g2(U8G2_R0); //只显示二行
U8G2_SSD1306_128X64_VCOMH0_F_HW_I2C u8g2(U8G2_R0); //不显示
这一个原因是因为RAM用完的缘故,所以导致无法正常的显示,u8g要使用硬件I2C,就需要占用大量的RAM用来作为Buffer

假如说RAM实在不足,那只能在初始化时候使用软件I2C
U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); //速度慢
边栏推荐
- Com. Faster XML. Jackson. DataBind. Exc.mismatchedinputexception: tableau ou chaîne attendu. At [Source: X
- 数字格式化的 js 库
- 【Vscode】预览md文件
- How to write test cases and a brief introduction to go unit test tool testify
- Moher College - SQL injection vulnerability test (error reporting and blind note)
- Ten thousand words explanation - mindarmour Xiaobai tutorial!
- 【leetcode】275. H index II
- Is it safe to open a compass account?
- 剑指 Offer 10- II. 青蛙跳台阶问题
- 敲重点!最全大模型训练合集!
猜你喜欢

Mindspire, a domestic framework, cooperates with Shanshui nature conservation center to find and protect the treasure life in the "China water tower"

Safe and cost-effective payment in Thailand

My advanced learning notes of C language ----- keywords

Analysis on the advantages and disadvantages of the best 12 project management systems at home and abroad

Using physical information neural network to solve hydrodynamics equations

JSON解析,ESP32轻松获取时间气温和天气

滑环安装有哪些技巧和方法

Lwip之ARP模块实现

巧记大小端字节序

1+1<2 ?! HESIC论文解读
随机推荐
05 | 规范设计(下):commit 信息风格迥异、难以阅读,如何规范?
redis详细教程
matlab数据类型 —— 字符型
2022健康博览会,山东养生保健展会,产后健康、睡眠健康展
Great health industry annual must attend event, 2022 Shandong International Great Health Industry Expo
idea 热启动失效解决方案
大健康行业年度必参盛会,2022山东国际大健康产业博览会
复杂数据没头绪?
05 | standard design (Part 2): how to standardize the different styles of commit information, which are difficult to read?
Special topic II on mathematical physics of the sprint strong foundation program
根据文件名批量生成文件夹
技术干货|极速、极智、极简的昇思MindSpore Lite:助力华为Watch更加智能
【leetcode】275. H index II
巧记大小端字节序
Using physical information neural network to solve hydrodynamics equations
Lwip之定时机制
小白看MySQL--windows环境安装MySQL
Thesis study -- Analysis of the influence of rainfall field division method on rainfall control rate
【Vscode】预览md文件
[vscade] preview MD file