This repository has been archived on 2024-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
UAV/yaokon/Core/Inc/oled_ssd1306.h
2023-10-03 16:40:14 +08:00

39 lines
566 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
@作者:你遇了我
@联系邮箱321640253@qq.com
@文件oled_ssd1306.h
@描述抽象ssd1306驱动 oled屏幕最大分辨率128*64
*/
#ifndef _OLED_SSD1306_H
#define _OLED_SSD1306_H
/*导入你的头文件*/
#include "spi.h"
#include "gpio.h"
/*导入你的头文件*/
#include "stdint.h"
typedef uint8_t oled_uint8;
/*
*OLED的状态
*/
typedef enum _OLED_STATE{
OLED_OK, //状态正确
OLED_ERROR, //状态异常
} OLED_STATE;
/*
*命令
*/
/*函数区*/
OLED_STATE oled_write(oled_uint8 *data);
OLED_STATE oled_init(void);
#endif