目的
用RTT 驅(qū)動SSD1306
方法步驟
下載rtthread源碼:https://gitee.com/lugl/rt-thread。這個創(chuàng)庫我會修正一些試用的問題。
在rt-threadspwch
isc-vch32v208w-r0目錄下打開env,配置啟用i2c:
修改默認的參數(shù)為SCL:PB8(24) SDA:PB9(25)
【注意】我就是原來直接用PC7、PC6結(jié)果查問題查了三天才搞好。
啟用ssd1306,以及啟用示例:
保存同步pkge。
- 修改編譯工具:
修改rtconfig.py 如下:
【編譯工具目錄查看】:
右鍵查RT-Thread圖標就可以看到起始位置:
- 執(zhí)行scons編譯
Administrator@XTZJ-20211228NB M:\RT_Thread\CHV208\rt-thread\bsp\wch\risc-v\ch32v208w-r0
$ scons
scons: Reading SConscript files ...
Newlib version: 3.0.0
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
scons: `.' is up to date.
scons: done building targets.
然后用wchisp工個下載
下載結(jié)束后,開啟MSH終端,輸入ssd1306_TestAll
msh >ssd1306_TestAll
審核編輯 黃宇
-
OLED
+關(guān)注
關(guān)注
119文章
6219瀏覽量
224815 -
驅(qū)動
+關(guān)注
關(guān)注
12文章
1851瀏覽量
85637 -
開發(fā)板
+關(guān)注
關(guān)注
25文章
5121瀏覽量
98189 -
RT-Thread
+關(guān)注
關(guān)注
31文章
1305瀏覽量
40383 -
沁恒股份
+關(guān)注
關(guān)注
2文章
103瀏覽量
4634 -
CH32V208
+關(guān)注
關(guān)注
0文章
5瀏覽量
280 -
ch32
+關(guān)注
關(guān)注
0文章
73瀏覽量
694
發(fā)布評論請先 登錄
相關(guān)推薦
NodeMCU驅(qū)動SSD1306顯示
SSD1306的相關(guān)資料分享
SSD1306芯片介紹
SSD1306的通訊過程與配置命令
請教大神怎樣去操作SSD1306這個軟件包呢
【國民技術(shù)N32項目移植】3. 硬件IIC驅(qū)動RT-Thread OS SSD1306軟件包
【國民技術(shù)N32項目移植】ssd1306項目移植
使用RT-Thread Studio和CPK-RA2L1板點亮0.96寸OLED ssd1306
【沁恒 CH32V208 開發(fā)板免費試用】RT-Thread ssd1306驅(qū)動
SSD1306數(shù)據(jù)表
基于SSD1306的OLED開發(fā)模塊
RT-Thread Studio配置u8g2點亮OLED SSD1306
![<b class='flag-5'>RT-Thread</b> Studio配置u8g2點亮OLED <b class='flag-5'>SSD1306</b>](https://file.elecfans.com/web1/M00/C3/40/o4YBAF8nwBGAf1hPAAAH6uGC4oY551.png)
SSD1306(OLED驅(qū)動芯片介紹)
![<b class='flag-5'>SSD1306</b>(OLED<b class='flag-5'>驅(qū)動</b>芯片介紹)](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
評論