utility/u8g.h: No such file or directory -- 0.96寸 不能显示中文 错误
如果出现utility/u8g.h: No such file or directory 这个错误是因为新版的U8glib 库已经把utility改成clib ,因此 改成如下即可
#include "U8glib.h"
#include "clib/u8g.h"
U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);
const uint8_t bitmap_z [] U8G_PROGMEM ={
0x00,0x00,0x01,0x80,0x03,0x80,0x3F,0xBC,0x7F,0xBE,0x73,0xCE,0x63,0xCE,0x63,0xCE,
0x63,0xCE,0x7B,0x9E,0x7F,0xBE,0x3F,0xBC,0x1F,0xB8,0x03,0x80,0x03,0x80,0x01,0x80
};
const uint8_t bitmap_w [] U8G_PROGMEM ={
0x00,0x00,0x07,0xC0,0x3F,0xD8,0x7C,0x7E,0x7F,0xFE,0x00,0x00,0x1C,0x3C,0x1C,0x38,
0x0E,0x70,0x0F,0xF0,0x07,0xA0,0x0B,0xE0,0x3D,0xFC,0x7E,0xFE,0x7C,0x3E,0x30,0x00
};
void draw(void) {
u8g.setColorIndex(1);
u8g.drawBitmapP ( 0 , 0 , 2 , 16 , bitmap_z);
u8g.drawBitmapP ( 17 , 0 , 2 , 16 , bitmap_w );
}
void setup() {
}
void loop() {
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );
}
utility/u8g.h: No such file or directory -- 0.96寸 不能显示中文 错误相关推荐
- 【Qt】错误GL/gl.h: No such file or directory的解决方法(以及cannot find -lGL解决方法)
1.问题描述 QtCreator第一次编译时,报错GL/gl.h: No such file or directory 错误信息如下: /home/Qt5.6.3/5.6.3/gcc_64/inclu ...
- 【linux】error: stdio.h: No such file or directory
ubuntu 默认没有C和C++编译环境 ubuntu 默认没有C和C++编译环境,新装的ubuntu,使用gcc编译时,会报错,找不到某某头文件等.在编译一个demo,如hello world时,会 ...
- Python.h: No such file or directory
安装python-devel包解决这个问题 # pip install netifaces DEPRECATION: Python 2.6 is no longer supported by ...
- 报错解决:fatal error: json/json.h: No such file or directory
晚上在做编译原理作业的时候遇到了报错: ASTNodes.h:6:23: fatal error: json/json.h: No such file or directory#include < ...
- fatal error: Python.h: No such file or directory 解决
[常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux 软件: 系统python默认版本2.7 Py ...
- mysql-python 安装错误: Cannot open include file: 'config-win.h': No such file or directory
问题描述: pip instal MySQL-Python 出现如下错误: [plain] view plain copy Installing collected packages: MySql-p ...
- Install matplotlib Error: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directory
在ubuntu下从源码安装matplotlib的时候出现这样的错误: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or dir ...
- linux 内核编译 错误 fatal error: linux/compiler-gcc6.h: No such file or directory
在交叉编译i.MX6UL的Kernel代码时出现这个错误 CHK include/config/kernel.release Using .. as source for kernel GEN . ...
- cudnn.h: No such file or directory
cudnn.h: No such file or directory cudnn 是单独的库,Windows需要安装下载,linux也需要. 比如路径: cudnn-10.0-windows10-x6 ...
- libxml/xmlversion.h: No such file or directory
libxml/xmlversion.h: No such file or directory 解决办法 sudo apt-get install libxml2-dev libxslt-dev
最新文章
- python自动化测试看什么书-《Python自动化测试实战》终于出版!!!
- 05-连接数据库方法
- java高并发类_Java 高并发之魂
- linux中tags文件能删除吗,Git 详细介绍查看、删除、重命名远程分支和tag
- 互联网晚报 | 4月17日 星期天 | 滴滴2021年第四季度收入同比下降;以岭药业表示世卫从未推荐连花清瘟;上海有序复工复产...
- PHP学习记录_基本语法
- NameError: name 'words' is not defined
- 你的押金在这?ofo发文曝光多起贪腐案:总涉案金额达数百万元
- 设计灵感|简单的几何图形还能这么用在网页设计中!
- 地理空间数据Geometry在MySQL中使用(二)
- SparkContext详述
- IntelliJ IDEA 12 与 Tomcat7 配置
- 驾驶证北京到期满换证 异地期满换领 异地驾驶证到期在北京换证 驾驶证异地换证
- 拳王虚拟项目公社:新媒体多渠道变现,生财有道?
- HDU-6578 Blank
- 中学学生成绩管理系统
- java 客户端上传_java实现上传文件到服务器和客户端
- 河南理工大学python挂科率_河南理工大学是什么水平?附河南理工大学就业最好专业...
- 关于卷积神经网络的论文,卷积神经网络创始人
- microsoft注册服务器32位,win7系统弹出microsoft注册服务器已停止工作的解决方法