1

单片机控制OLED12864显示屏之模块化编程

 3 years ago
source link: https://blog.csdn.net/yagnruinihao/article/details/115842157
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

单片机控制OLED12864显示屏之模块化编程

这里将我写的STC12C5A60S2单片机控制OLED12864显示屏的程序共享一下,如有不足,敬请指出!

实验视频:

单片机控制OLED12864显示屏实验效果

代码结构图:

程序下载链接:https://download.csdn.net/download/yagnruinihao/16746777点击下载 (【备注】该程序由作者根据SSD1306的手册(datasheet)一字一句敲键盘所得,做了大量实验,花费时间精力,请尊重劳动成果,谢谢。)

测试程序:OLED12864测试.c

/*################OLED12864.h################*/ 

/*################OLED12864.c部分代码分析################*/ 

这里重点分析书写16x16中文汉字的四种算法(逐行式、逐列式、列行式、行列式)

算法一:逐行式

算法二:逐列式

算法三:列行式(作者最后采用的方式)

算法四:行列式

【注意】这里采用那种算法,需要和取模软件相配套。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK