当前位置:网站首页>解决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); //速度慢
边栏推荐
- 滑环选型选购时需要注意的技巧
- 技术干货|极速、极智、极简的昇思MindSpore Lite:助力华为Watch更加智能
- Leetcode skimming 4 Find the median of two positive arrays
- BootstrapBlazor + FreeSql实战 Chart 图表使用(2)
- JS library for number formatting
- What are the skills and methods for slip ring installation
- 巧记大小端字节序
- 自定义MVC(导成jar包)+与三层架构的区别+反射+面试题
- Oracle 數據庫基本知識概念
- find_circ详细使用指南
猜你喜欢

How to easily describe the process of machine learning?

com.fasterxml.jackson.databind.exc.MismatchedInputException: Expected array or string. at [Source:x

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

万字详解-MindArmour 小白教程!

當Transformer遇見偏微分方程求解

Target tracking shooting? Target occlusion shooting? With 1.9 billion installed petal apps, what unique features attract users?

冲刺强基计划数学物理专题二

Hit the point! The largest model training collection!

Lwip之定时机制

大咖讲 | 最前沿的昇思MindSpore开源社区运营的经验分享,快拿出小本本记录呀!
随机推荐
Technical dry goods | top speed, top intelligence and minimalist mindspore Lite: help Huawei watch become more intelligent
Simulation of delta variant strain of novel coronavirus (mindsponge application)
In depth understanding of UDP in the transport layer and the use of UDP in sockets
Kubernetes visual interface dashboard
新股民如何网上开户 网上开户炒股安全吗
Is it reliable to speculate in stocks by mobile phone? Is it safe to open an account and speculate in stocks online
记录一次换行符引起的bug
Technical dry goods | what is a big model? Oversized model? Foundation Model?
Oracle database basics concepts
MySQL之账号管理、建库以及四大引擎+案例
Lambda表达式
CPU的异常处理
手机炒股靠谱吗 网上开户炒股安全吗
How to control the quality of HD slip ring in the production process
寻找旋转排序数组中的最小值 II[经典抽象二分 + 如何破局左中右三者相等]
Batch generate folders based on file names
Freescale 单片机概述
大咖讲 | 最前沿的昇思MindSpore开源社区运营的经验分享,快拿出小本本记录呀!
气液滑环与其他滑环的工作原理有什么区别
xml学习笔记