Select one of the symbols to view example projects that use it.
 
Outline
#define __LS016B8UY_H
#include <stdio.h>
#include "../Common/lcd.h"
#define LS016B8UY_ID
#define LS016B8UY_LCD_PIXEL_WIDTH
#define LS016B8UY_LCD_PIXEL_HEIGHT
#define LCD_CMD_SLEEP_IN
#define LCD_CMD_SLEEP_OUT
#define LCD_CMD_DISPLAY_OFF
#define LCD_CMD_DISPLAY_ON
#define LCD_CMD_WRITE_RAM
#define LCD_CMD_READ_RAM
#define LCD_CMD_CASET
#define LCD_CMD_RASET
#define LCD_CMD_VSYNC_OUTPUT
#define LCD_CMD_NORMAL_DISPLAY
#define LCD_CMD_IDLE_MODE_OFF
#define LCD_CMD_IDLE_MODE_ON
#define LCD_CMD_COLOR_MODE
#define LCD_CMD_PANEL_SETTING_1
#define LCD_CMD_PANEL_SETTING_2
#define LCD_CMD_OSCILLATOR
#define LCD_CMD_PANEL_SETTING_LOCK
#define LCD_CMD_PANEL_V_PORCH
#define LCD_CMD_PANEL_IDLE_V_PORCH
#define LCD_CMD_GVDD
#define LCD_CMD_OPAMP
#define LCD_CMD_RELOAD_MTP_VCOMH
#define LCD_CMD_PANEL_TIMING_1
#define LCD_CMD_PANEL_TIMING_2
#define LCD_CMD_PANEL_TIMING_3
#define LCD_CMD_PANEL_TIMING_4
#define LCD_CMD_PANEL_POWER
#define LCD_CMD_TEARING_EFFECT
ls016b8uy_Init();
ls016b8uy_ReadID();
ls016b8uy_WriteReg(uint8_t, uint8_t *, uint8_t);
ls016b8uy_ReadReg(uint8_t);
ls016b8uy_DisplayOn();
ls016b8uy_DisplayOff();
ls016b8uy_SetCursor(uint16_t, uint16_t);
ls016b8uy_WritePixel(uint16_t, uint16_t, uint16_t);
ls016b8uy_ReadPixel(uint16_t, uint16_t);
ls016b8uy_DrawHLine(uint16_t, uint16_t, uint16_t, uint16_t);
ls016b8uy_DrawVLine(uint16_t, uint16_t, uint16_t, uint16_t);
ls016b8uy_DrawBitmap(uint16_t, uint16_t, uint8_t *);
ls016b8uy_DrawRGBImage(uint16_t, uint16_t, uint16_t, uint16_t, uint8_t *);
ls016b8uy_SetDisplayWindow(uint16_t, uint16_t, uint16_t, uint16_t);
ls016b8uy_GetLcdPixelWidth();
ls016b8uy_GetLcdPixelHeight();
ls016b8uy_drv;
LCD_IO_Init();
LCD_IO_WriteMultipleData(uint16_t *, uint32_t);
LCD_IO_WriteReg(uint8_t);
LCD_IO_WriteData(uint16_t);
LCD_IO_ReadData();
LCD_IO_Delay(uint32_t);
Files
loading...
CodeScopeSTM32 Libraries and Samplesls016b8uyls016b8uy.h
 
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file ls016b8uy.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the ls016b8uy.c * driver. ****************************************************************************** * @attention * * Copyright (c) 2016 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __LS016B8UY_H #define __LS016B8UY_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include <stdio.h> #include "../Common/lcd.h" /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup Components * @{ *//* ... */ /** @addtogroup ls016b8uy * @{ *//* ... */ /** @defgroup LS016B8UY_Exported_Types * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup LS016B8UY_Exported_Constants * @{ *//* ... */ /** * @brief LS016B8UY ID *//* ... */ #define LS016B8UY_ID 0xFFFF /** * @brief LS016B8UY Size *//* ... */ #define LS016B8UY_LCD_PIXEL_WIDTH ((uint16_t)180) #define LS016B8UY_LCD_PIXEL_HEIGHT ((uint16_t)180) /** * @brief LS016B8UY Registers *//* ... */ #define LCD_CMD_SLEEP_IN 0x10 #define LCD_CMD_SLEEP_OUT 0x11 #define LCD_CMD_DISPLAY_OFF 0x28 #define LCD_CMD_DISPLAY_ON 0x29 #define LCD_CMD_WRITE_RAM 0x2C #define LCD_CMD_READ_RAM 0x2E #define LCD_CMD_CASET 0x2A #define LCD_CMD_RASET 0x2B #define LCD_CMD_VSYNC_OUTPUT 0x35 #define LCD_CMD_NORMAL_DISPLAY 0x36 #define LCD_CMD_IDLE_MODE_OFF 0x38 #define LCD_CMD_IDLE_MODE_ON 0x39 #define LCD_CMD_COLOR_MODE 0x3A #define LCD_CMD_PANEL_SETTING_1 0xB0 #define LCD_CMD_PANEL_SETTING_2 0xB1 #define LCD_CMD_OSCILLATOR 0xB3 #define LCD_CMD_PANEL_SETTING_LOCK 0xB4 #define LCD_CMD_PANEL_V_PORCH 0xB7 #define LCD_CMD_PANEL_IDLE_V_PORCH 0xB8 #define LCD_CMD_GVDD 0xC0 #define LCD_CMD_OPAMP 0xC2 #define LCD_CMD_RELOAD_MTP_VCOMH 0xC5 #define LCD_CMD_PANEL_TIMING_1 0xC8 #define LCD_CMD_PANEL_TIMING_2 0xC9 #define LCD_CMD_PANEL_TIMING_3 0xCA #define LCD_CMD_PANEL_TIMING_4 0xCC #define LCD_CMD_PANEL_POWER 0xD0 #define LCD_CMD_TEARING_EFFECT 0xDD 31 defines /** * @} *//* ... */ /** @defgroup LS016B8UY_Exported_Functions * @{ *//* ... */ void ls016b8uy_Init(void); uint16_t ls016b8uy_ReadID(void); void ls016b8uy_WriteReg(uint8_t Command, uint8_t *Parameters, uint8_t NbParameters); uint8_t ls016b8uy_ReadReg(uint8_t Command); void ls016b8uy_DisplayOn(void); void ls016b8uy_DisplayOff(void); void ls016b8uy_SetCursor(uint16_t Xpos, uint16_t Ypos); void ls016b8uy_WritePixel(uint16_t Xpos, uint16_t Ypos, uint16_t RGBCode); uint16_t ls016b8uy_ReadPixel(uint16_t Xpos, uint16_t Ypos); void ls016b8uy_DrawHLine(uint16_t RGBCode, uint16_t Xpos, uint16_t Ypos, uint16_t Length); void ls016b8uy_DrawVLine(uint16_t RGBCode, uint16_t Xpos, uint16_t Ypos, uint16_t Length); void ls016b8uy_DrawBitmap(uint16_t Xpos, uint16_t Ypos, uint8_t *pbmp); void ls016b8uy_DrawRGBImage(uint16_t Xpos, uint16_t Ypos, uint16_t Xsize, uint16_t Ysize, uint8_t *pdata); void ls016b8uy_SetDisplayWindow(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height); uint16_t ls016b8uy_GetLcdPixelWidth(void); uint16_t ls016b8uy_GetLcdPixelHeight(void); /* LCD driver structure */ extern LCD_DrvTypeDef ls016b8uy_drv; /* LCD IO functions */ void LCD_IO_Init(void); void LCD_IO_WriteMultipleData(uint16_t *pData, uint32_t Size); void LCD_IO_WriteReg(uint8_t Reg); void LCD_IO_WriteData(uint16_t RegValue); uint16_t LCD_IO_ReadData(void); void LCD_IO_Delay(uint32_t delay); /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __LS016B8UY_H */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */