標(biāo)題: MSP432驅(qū)動一塊0.96寸OLED屏幕 源程序 [打印本頁]

作者: wenshengzhu    時(shí)間: 2021-7-17 09:46
標(biāo)題: MSP432驅(qū)動一塊0.96寸OLED屏幕 源程序


單片機(jī)源程序如下:
  1. #include <driverlib.h>
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. #include "oled.h"
  5. #include "SystemInit.h"
  6. int main(void)
  7. {
  8.     /* Stop Watchdog  */
  9.      WDT_A_holdTimer();
  10.      SystemClockInit(HFXT);//系統(tǒng)時(shí)鐘初始化
  11.            OLED_Init();   //初始化OLED  
  12.            OLED_Clear() ; //清屏
  13.        
  14.         /* 系統(tǒng)啟動頁面  */
  15.         OLED_ShowCHinese(10,3,0); //已
  16.         OLED_ShowCHinese(28,3,1);//點(diǎn)
  17.         OLED_ShowCHinese(46,3,2);//亮
  18.         OLED_ShowString(65,3,"OLED");
  19.         OLED_ShowCHinese(100,3,3);//屏
  20.        
  21.     while(1)
  22.     {
  23.         
  24.     }
  25. }


復(fù)制代碼

所有代碼51hei附件下載:
my proiect.zip (6.92 MB, 下載次數(shù): 73)


代碼

作者: daker001    時(shí)間: 2021-7-22 11:23
keil怎么移植到ccs中啊

作者: Hygge_0528    時(shí)間: 2021-7-31 10:17
daker001 發(fā)表于 2021-7-22 11:23
keil怎么移植到ccs中啊

配置相關(guān)的移植就復(fù)雜了,跟KEIL和CCS有關(guān),另外路徑或者文件命名也有不同。 建議你從最簡單的開始,逐漸添加內(nèi)容,否則太亂不太容易找到問題點(diǎn)。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1