1 Star 1 Fork 0

yhuan416 / Easy_SSD1306_STM32F1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

2020.2.7
Author : YHUAN
简易 STM32 SSD1306 OLED 模块库

使用说明

该库使用了Easy_Bitmap库对数据缓冲区进行操作

需要自行实现通信引脚的初始化并根据实际情况实现操作函数

使用前的配置

  1. 定义屏幕尺寸
	#define SSD1306_12864 /* 128 x 64 */
  1. 根据实际情况自行初始化相关的通信引脚
	static void _init(void);

ps:该函数只是例子,具体实现可以自行实现

  1. 根据实际情况实现以下三个函数
	static void ssd1306_reset(void);
	static void ssd1306_write_cmd(unsigned char cmd);
	static void ssd1306_write_data(unsigned char *data, unsigned int size);
  1. 实现相关的打印函数
	void ssd1306_DrawChar(int x, int y, unsigned char ch);
	void ssd1306_DrawString(int x, int y, const char *str);

ps:以上两个函数已经实现了,可以参考并实现别的函数接口

  1. 调用函数操作缓存区并刷新显示
	extern void ssd1306_RefreshGram(void);

Copyright (C) 2020 YHUAN   Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Easy_SSD1306_STM32F1 展开 收起
C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/yhuan416/Easy_SSD1306_STM32F1.git
git@gitee.com:yhuan416/Easy_SSD1306_STM32F1.git
yhuan416
Easy_SSD1306_STM32F1
Easy_SSD1306_STM32F1
master

搜索帮助