代码拉取完成,页面将自动刷新
#ifndef __OLED_H__
#define __OLED_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "vtor_elec_module_config.h"
#ifdef __VTOR_OLED__
#define OLED_CMD 0x80 //写命令
#define OLED_DATA 0x40 //写数据
#define OLED_PAINT_MODE_NORMAL 1
#define OLED_PAINT_MODE_INVERT 0
struct OLED_PAINT
{
unsigned char size;
unsigned char mode;
};
extern struct OLED_PAINT* pOledPaint;
#ifdef __OLED_GRAM__
void OLED_ClearPoint(unsigned char x,unsigned char y);
#endif
void OLED_ColorTurn(unsigned char i);
void OLED_DisplayTurn(unsigned char i);
void OLED_WR_Byte(unsigned char regData,unsigned char regAddr);
void OLED_DisPlay_On(void);
void OLED_DisPlay_Off(void);
#ifdef __OLED_GRAM__
void OLED_Refresh(void);
void OLED_ClearGRam(void);
#endif
void OLED_Clear(void);
#ifdef __OLED_GRAPH__
void OLED_DrawPoint(unsigned char x,unsigned char y,unsigned char t);
void OLED_DrawLine(unsigned char x1,unsigned char y1,unsigned char x2,unsigned char y2);
void OLED_DrawCircle(unsigned char x,unsigned char y,unsigned char r);
#endif
void OLED_ShowChar(unsigned char x,unsigned char y,unsigned char chr);
void OLED_ShowString(unsigned char x,unsigned char y,unsigned char *chr);
#ifdef __OLED_HZK__
void OLED_ShowChinese(unsigned char x,unsigned char y,unsigned char num);
#endif
#ifdef __OLED_EXTRA__
void OLED_ScrollDisplay(unsigned char num,unsigned char space);
void OLED_ShowPicture(unsigned char x,unsigned char y,unsigned char sizex,unsigned char sizey,unsigned char BMP[]);
#endif
void OLED_Init(void);
#ifdef __OLED_PRINTF__
void OLED_ShowNum(unsigned char x,unsigned char y,unsigned int num,unsigned char len);
void OLED_Printf(unsigned char x,unsigned char y,char* fmt,...);
void OLED_Printf00(char* fmt,...);
#endif
#ifdef __OLED_LOG__
void OLED_PushLog(unsigned char *log);
void OLED_RefreshLog(void);
#endif
#endif // __VTOR_OLED__
#ifdef __cplusplus
}
#endif
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。