stm32_ota/USER/USER_OLED/user_oled.h

54 lines
2.4 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef __USER_OLED_H
#define __USER_OLED_H
#include <stdint.h>
#include "oled.h"
/******************************************************************************
*常变量定义
*******************************************************************************/
static const unsigned char csqBmp[] =
{
//0x00,0x02,0x06,0x0E,0x1E,0xFE,0xFE,0x1E,0x0E,0x06,0x02,0x00,
//0x00,0x00,0x00,0x00,0x00,0xE0,0xE0,0x00,0x00,0xFC,0xFC,0x00,
//0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
//0x00,0x3F,0x3F,0x00,0x00,0x38,0x38,0x00,0x00,0x3F,0x3F,0x00,
//0x00,0x3F,0x3F,0x00,0x00,0x3F,0x3F,0x00,0x00,0x00,0x00,0x00,
//0x00,0x00,0x00,0x00
0x01,0x03,0x07,0x0F,0x1F,0xFF,0xFF,0x1F,0x0F,0x07,0x03,0x01,
0x00,0x00,0x00,0x00,0x00,0xE0,0xE0,0x00,0x00,0xFC,0xFC,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0x3F,0x00,0x00,0x38,0x38,0x00,0x00,0x3F,0x3F,0x00,
0x00,0x3F,0x3F,0x00,0x00,0x3F,0x3F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00
} ; //OLED图片 信号标志
static const unsigned char batBmp[] =
{
0x00,0x00,0xF8,0x08,0xE8,0xE8,0xE8,0xE8,0x08,0x08,0xE8,0xE8,
0xE8,0xE8,0x08,0x08,0xE8,0xE8,0xE8,0xE8,0x08,0x08,0xF8,0x20,
0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x10,
0x17,0x17,0x17,0x17,0x10,0x10,0x17,0x17,0x17,0x17,0x10,0x10,
0x17,0x17,0x17,0x17,0x10,0x10,0x1F,0x04,0x07,0x00,0x00,0x00,
0x00,0x00,0x00,0x00
} ; //OLED图片 电池标志
/*****************************************
*内部接口函数声明
****************************************/
void DisplayCsq(char *pData) ; //OLED第一行右侧区域显示信号图片并显示CSQ值。
void DisplayBattery(char *pData) ; //OLED第一行右侧区域显示电池图片并显示电压值。
/*****************************************
*对外接口函数声明
****************************************/
/**菜单界面如上***********************************************************************************************************/
extern void DisplayStatusBar(void) ; //OLED第一行右侧区域显示信号图片并显示CSQ值,OLED第一行右侧区域显示电池图片并显示电压值。
extern void StatusBarPrintf(char *pData) ; //OLED第一行显示pData第一行为状态栏
extern void DisplayTitle(char *pData) ; //OLED第二行显示标题/进度,OLED第三行清空
extern void DisplayInfo(char *pData) ; //OLED第三行显示标题/进度的内容信息。
extern void DisplayWarning(char *pSecond, char *pThird) ; //显示警告信息。显示第二行、第三行
#endif