欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標(biāo)題:
0.96 OLED STM32驅(qū)動(dòng)代碼
[打印本頁]
作者:
beast777
時(shí)間:
2021-5-9 09:49
標(biāo)題:
0.96 OLED STM32驅(qū)動(dòng)代碼
以前做的OLED顯示。
支持英文,數(shù)字,字符,但不支持中文
供大家參考一下吧
單片機(jī)源程序如下:
#include "stm32f10x.h"
#include "bsp_i2c_gpio.h"
#include "bsp_usart.h"
#include "SSD1306.h"
extern OLED_IN OLED_In;
static void BSP_Init(void);
int main(void)
{
uint16_t i;
BSP_Init();
OLED_Refresh();
OLED_In.buff_in[0] ="a0";
OLED_In.buff_in[1] ="b1";
OLED_In.buff_in[2] ="c2";
OLED_In.buff_in[3] ="d3";
OLED_In.buff_in[4] ="e4";
OLED_In.buff_in[5] ="f5";
OLED_In.buff_in[6] ="a6";
OLED_In.buff_in[7] ="b7";
OLED_In.buff_in[8] ="c8";
OLED_In.buff_in[9] ="d9";
OLED_In.buff_in[10] ="10";
OLED_In.buff_in[11] ="11";
OLED_Refresh();
// OLED_ShowString(0,0,"hhhhhh",16);
while(1){
OLED_ShowON(12);
}
}
static void BSP_Init(void)
{
Key_GPIO_Config();
USART_Config();
OLED_Config();
}
復(fù)制代碼
所有資料51hei提供下載:
OLED_last.7z
(446.21 KB, 下載次數(shù): 17)
2021-5-9 16:21 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://m.raoushi.com/bbs/)
Powered by Discuz! X3.1