ESP32

※This article is based on esp-idf 4.0

下载 [edit]

https://github.com/olikraus/u8g2

安装 [edit]

  1. Create a directory called components in your main project directory.
  2. Change into the components directory.
  3. Run git clone https://github.com/mkfrey/u8g2-hal-esp-idf.git to bring in the latest copy of this library.
  4. Run git clone https://github.com/olikraus/u8g2.git to bring in a the latest copy of u8g2 library.

IIC接口 [edit]

ESP32 的硬件IIC默认的接口

// SDA - GPIO21
#define PIN_SDA 21

// SCL - GPIO22
#define PIN_SCL 22

参考:

https://blog.csdn.net/quangui666/article/details/81483645

问题 [edit]

编译错误 [edit]

components/u8g2/csrc/u8x8_d_ssd1320.c:339:22: error: 'u8x8_d_ssd1320_cs1_160x132_init_seq' defined but not used [-Werror=unused-const-variable=]
 static const uint8_t u8x8_d_ssd1320_cs1_160x132_init_seq[] = {
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

&ref(): File not found: "ZigBee_体系结构.png" at page "+ESP32+OLED屏";


コメント:



(画像の文字列を入力して下さい)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS