You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
441 B
441 B
I2C_OLED
-
将PB6、PB7分别配置为I2C_SCL、I2C_SDA
-
在Project Manager - Code Generator中勾选Generate peripheral initialization as a pair of...
-
配置I2C1
- I2C选择I2C
-
复制oled.c/oled.h/oledfont.h文件到Core的Src/Inc目录下
-
初始化OLED API
- OLED_Init();
- OLED_ColorTurn(0);
- OLED_DisplayTurn(0);
-
注意:调用OLED_ShowString之后,需要调用OLED_Refresh()才能刷新屏显。