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() );
  }
 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This error message indicates that the compiler is unable to locate the header file "arpack.h". This header file is typically used in programs that use the ARPACK library for solving large-scale eigenvalue problems. To resolve this issue, you need to ensure that the ARPACK library is properly installed on your system and that the necessary header files are included in the compiler's search path. Here are some steps you can take to troubleshoot this error: 1. Check that the ARPACK library is installed on your system. You can do this by searching for the library files (e.g. libarpack.so) in your system's library directories (e.g. /usr/lib). 2. If the library is not installed, you can download it from the ARPACK website (http://www.caam.rice.edu/software/ARPACK/) and install it on your system. 3. If the library is installed, check that the header file "arpack.h" is included in the library's installation directory. This file should typically be located in a directory named "include" within the library's installation directory. 4. If the header file is not in the library's installation directory, check that it is installed on your system. You can do this by searching for the file using your system's file search utility. 5. Once you have located the header file, you need to add its directory to the compiler's search path. This can be done by adding the directory to the INCLUDE environment variable or by adding the directory to the compiler's command line options using the -I flag. By following these steps, you should be able to resolve the "arpack.h: No such file or directory" error and successfully compile your program.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值