|
8黑幣
我的屏幕驅(qū)動芯片時(shí)st7735s,在單片機(jī)控制oled時(shí),數(shù)據(jù)發(fā)送成功并且正確時(shí),但是oled沒有顯示為啥
- #include "system.h"
- #include "SysTick.h"
- #include "led.h"
- #include "usart.h"
- #include "key.h"
- #include "oled.h"
- #include "gui.h"
- int main()
- {
- // u8 i=0;
-
- SysTick_Init(168);
- NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //中斷優(yōu)先級分組 分2組
- LED_Init();
- USART1_Init(9600);
- KEY_Init();
- OLED_Init();
-
-
- // GUI_DrawLine(10,10,20,70,YELLOW);
- //LCD_ShowString(10,10,oled_info.width,oled_info.highly,12,"Hello World!");
-
- while(1)
- {
-
- OLED_Clear_XY(RED);
- //OLED_WriteGRAM();
-
- }
- }
復(fù)制代碼 程序:
spi-oled-1.44.7z
(351.59 KB, 下載次數(shù): 4)
2021-4-29 17:35 上傳
點(diǎn)擊文件名下載附件
|
|