欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

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

作者: wenshengzhu    時(shí)間: 2021-7-17 09:46
標(biāo)題: MSP432驅(qū)動(dòng)一塊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)啟動(dòng)頁(yè)面  */
  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),另外路徑或者文件命名也有不同。 建議你從最簡(jiǎn)單的開(kāi)始,逐漸添加內(nèi)容,否則太亂不太容易找到問(wèn)題點(diǎn)。




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