1 /*
2  * Copyright (C) 2015-2021 Alibaba Group Holding Limited
3  */
4 #ifndef SENSORS_SH1106_H
5 #define SENSORS_SH1106_H
6 
7 #include "font.h"
8 #include "icon.h"
9 
10 uint8_t sh1106_init(void);
11 void OLED_Refresh_GRAM(void);
12 void OLED_Clear(void);
13 void OLED_Full(void);
14 void OLED_DrawPoint(int16_t x, int16_t y, uint8_t mode);
15 void OLED_DrawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint8_t mode);
16 void OLED_DrawVerticalLine(uint8_t x, uint8_t y, uint8_t length, uint8_t mode);
17 void OLED_DrawHorizontalLine(uint8_t x, uint8_t y, uint8_t length, uint8_t mode);
18 void OLED_DrawRect(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t mode);
19 void OLED_FillRect(uint8_t xMove, uint8_t yMove, uint8_t width, uint8_t height, uint8_t mode);
20 void OLED_DrawCircle(uint8_t x0, uint8_t y0, uint8_t radius, uint8_t width, uint8_t mode);
21 void OLED_FillCircle(uint8_t x0, uint8_t y0, uint8_t r, uint8_t mode);
22 void OLED_Show_Char(uint8_t x, uint8_t y, uint8_t chr, uint8_t size, uint8_t mode);
23 void OLED_Icon_Draw(int16_t x, int16_t y, icon_t *icon, uint8_t mode);
24 void OLED_test(int flag);
25 void sh1106_show_string(uint8_t x, uint8_t y, const uint8_t *p, uint8_t size, uint8_t mode);
26 void OLED_Show_String(uint8_t x, uint8_t y, const uint8_t *p, uint8_t size, uint8_t mode);
27 #endif
28