aboutsummaryrefslogtreecommitdiffhomepage
path: root/workspace/ts100/inc/Oled.h
blob: 4ceff1124f14932b7b58b8b082ad7d4b902a4b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/********************* (C) COPYRIGHT 2015 e-Design Co.,Ltd. **********************
File Name :      Oled.h
Version :        S100 APP Ver 2.11
Description:
Author :         Celery
Data:            2015/07/07
History:
2015/07/07   ͳһ������
*******************************************************************************/
#ifndef _OLED_SSD1306_H
#define _OLED_SSD1306_H

#define DEVICEADDR_OLED  0x3c
#include "stm32f10x.h"
void Sc_Pt(u8 Co);
void Oled_DisplayOn(void);
void Oled_DisplayOff(void);
u8* Oled_DrawArea(u8 x0,u8 y0,u8 wide, u8 high,u8* ptr);
void Set_ShowPos(u8 x,u8 y);

u8* Show_posi(u8 posi,u8* ptr,u8 word_width);
void Clean_Char(int k,u8 wide);
void Write_Command(u8 Data);
void Write_Data(u8 Data);
void GPIO_Init_OLED(void);
void Init_Oled(void);
u8* Data_Command(u8 len,u8* ptr);
void Reg_Command(u8 posi,u8 flag);
void Clear_Screen(void);
void Write_InitCommand_data(u32 Com_len,u8* data);
void  Display_BG(void);
#endif
/******************************** END OF FILE *********************************/