This class drives the LCD display (4-inch 800x472 LCD-TFT) present on STM32F769I-DISCO board
Dependents: Datarecorder2 DISCO-F769NI_several_example
LCD_DISCO_F769NI.cpp@0:fd7c63b20d54, 2017-02-10 (annotated)
- Committer:
- Jerome Coutant
- Date:
- Fri Feb 10 13:31:58 2017 +0100
- Revision:
- 0:fd7c63b20d54
LCD Display DISCO-F769NI
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jerome Coutant
0:fd7c63b20d54
|
1
|
/* Copyright (c) 2010-2011 mbed.org, MIT License
|
|
Jerome Coutant
0:fd7c63b20d54
|
2
|
*
|
|
Jerome Coutant
0:fd7c63b20d54
|
3
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
Jerome Coutant
0:fd7c63b20d54
|
4
|
* and associated documentation files (the "Software"), to deal in the Software without
|
|
Jerome Coutant
0:fd7c63b20d54
|
5
|
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
|
|
Jerome Coutant
0:fd7c63b20d54
|
6
|
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
|
|
Jerome Coutant
0:fd7c63b20d54
|
7
|
* Software is furnished to do so, subject to the following conditions:
|
|
Jerome Coutant
0:fd7c63b20d54
|
8
|
*
|
|
Jerome Coutant
0:fd7c63b20d54
|
9
|
* The above copyright notice and this permission notice shall be included in all copies or
|
|
Jerome Coutant
0:fd7c63b20d54
|
10
|
* substantial portions of the Software.
|
|
Jerome Coutant
0:fd7c63b20d54
|
11
|
*
|
|
Jerome Coutant
0:fd7c63b20d54
|
12
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
|
|
Jerome Coutant
0:fd7c63b20d54
|
13
|
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
Jerome Coutant
0:fd7c63b20d54
|
14
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
Jerome Coutant
0:fd7c63b20d54
|
15
|
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
Jerome Coutant
0:fd7c63b20d54
|
16
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Jerome Coutant
0:fd7c63b20d54
|
17
|
*/
|
|
Jerome Coutant
0:fd7c63b20d54
|
18
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
19
|
#include "LCD_DISCO_F769NI.h"
|
|
Jerome Coutant
0:fd7c63b20d54
|
20
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
21
|
//#define LCD_SCREEN_WIDTH 800
|
|
Jerome Coutant
0:fd7c63b20d54
|
22
|
//#define LCD_SCREEN_HEIGHT 480
|
|
Jerome Coutant
0:fd7c63b20d54
|
23
|
//#define ARGB8888_BYTE_PER_PIXEL 4
|
|
Jerome Coutant
0:fd7c63b20d54
|
24
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
25
|
/* LTDC foreground layer address 800x480 in ARGB8888 */
|
|
Jerome Coutant
0:fd7c63b20d54
|
26
|
//#define LCD_FG_LAYER_ADDRESS LCD_FB_START_ADDRESS
|
|
Jerome Coutant
0:fd7c63b20d54
|
27
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
28
|
/* LTDC background layer address 800x480 in ARGB8888 following the foreground layer */
|
|
Jerome Coutant
0:fd7c63b20d54
|
29
|
//#define LCD_BG_LAYER_ADDRESS LCD_FG_LAYER_ADDRESS + (LCD_SCREEN_WIDTH * LCD_SCREEN_HEIGHT * ARGB8888_BYTE_PER_PIXEL)
|
|
Jerome Coutant
0:fd7c63b20d54
|
30
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
31
|
//#define INTERNAL_BUFFER_START_ADDRESS LCD_BG_LAYER_ADDRESS + (LCD_SCREEN_WIDTH * LCD_SCREEN_HEIGHT * ARGB8888_BYTE_PER_PIXEL)
|
|
Jerome Coutant
0:fd7c63b20d54
|
32
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
33
|
// Constructor
|
|
Jerome Coutant
0:fd7c63b20d54
|
34
|
LCD_DISCO_F769NI::LCD_DISCO_F769NI()
|
|
Jerome Coutant
0:fd7c63b20d54
|
35
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
36
|
BSP_LCD_Init();
|
|
Jerome Coutant
0:fd7c63b20d54
|
37
|
BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);
|
|
Jerome Coutant
0:fd7c63b20d54
|
38
|
BSP_LCD_Clear(LCD_COLOR_BLACK);
|
|
Jerome Coutant
0:fd7c63b20d54
|
39
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
40
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
41
|
// Destructor
|
|
Jerome Coutant
0:fd7c63b20d54
|
42
|
LCD_DISCO_F769NI::~LCD_DISCO_F769NI()
|
|
Jerome Coutant
0:fd7c63b20d54
|
43
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
44
|
BSP_LCD_Reset();
|
|
Jerome Coutant
0:fd7c63b20d54
|
45
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
46
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
47
|
//=================================================================================================================
|
|
Jerome Coutant
0:fd7c63b20d54
|
48
|
// Public methods
|
|
Jerome Coutant
0:fd7c63b20d54
|
49
|
//=================================================================================================================
|
|
Jerome Coutant
0:fd7c63b20d54
|
50
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
51
|
uint8_t LCD_DISCO_F769NI::Init(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
52
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
53
|
return BSP_LCD_Init();
|
|
Jerome Coutant
0:fd7c63b20d54
|
54
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
55
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
56
|
uint8_t LCD_DISCO_F769NI::InitEx(LCD_OrientationTypeDef orientation)
|
|
Jerome Coutant
0:fd7c63b20d54
|
57
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
58
|
return BSP_LCD_InitEx(orientation);
|
|
Jerome Coutant
0:fd7c63b20d54
|
59
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
60
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
61
|
#if defined(USE_LCD_HDMI)
|
|
Jerome Coutant
0:fd7c63b20d54
|
62
|
uint8_t LCD_DISCO_F769NI::HDMIInitEx(uint8_t format)
|
|
Jerome Coutant
0:fd7c63b20d54
|
63
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
64
|
return BSP_LCD_HDMIInitEx(format);
|
|
Jerome Coutant
0:fd7c63b20d54
|
65
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
66
|
#endif /* USE_LCD_HDMI */
|
|
Jerome Coutant
0:fd7c63b20d54
|
67
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
68
|
void LCD_DISCO_F769NI::Reset(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
69
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
70
|
BSP_LCD_Reset();
|
|
Jerome Coutant
0:fd7c63b20d54
|
71
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
72
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
73
|
uint32_t LCD_DISCO_F769NI::GetXSize(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
74
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
75
|
return BSP_LCD_GetXSize();
|
|
Jerome Coutant
0:fd7c63b20d54
|
76
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
77
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
78
|
uint32_t LCD_DISCO_F769NI::GetYSize(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
79
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
80
|
return BSP_LCD_GetYSize();
|
|
Jerome Coutant
0:fd7c63b20d54
|
81
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
82
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
83
|
void LCD_DISCO_F769NI::SetXSize(uint32_t imageWidthPixels)
|
|
Jerome Coutant
0:fd7c63b20d54
|
84
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
85
|
BSP_LCD_SetXSize(imageWidthPixels);
|
|
Jerome Coutant
0:fd7c63b20d54
|
86
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
87
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
88
|
void LCD_DISCO_F769NI::SetYSize(uint32_t imageHeightPixels)
|
|
Jerome Coutant
0:fd7c63b20d54
|
89
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
90
|
BSP_LCD_SetYSize(imageHeightPixels);
|
|
Jerome Coutant
0:fd7c63b20d54
|
91
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
92
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
93
|
void LCD_DISCO_F769NI::LayerDefaultInit(uint16_t LayerIndex, uint32_t FB_Address)
|
|
Jerome Coutant
0:fd7c63b20d54
|
94
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
95
|
BSP_LCD_LayerDefaultInit(LayerIndex, FB_Address);
|
|
Jerome Coutant
0:fd7c63b20d54
|
96
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
97
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
98
|
void LCD_DISCO_F769NI::SelectLayer(uint32_t LayerIndex)
|
|
Jerome Coutant
0:fd7c63b20d54
|
99
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
100
|
BSP_LCD_SelectLayer(LayerIndex);
|
|
Jerome Coutant
0:fd7c63b20d54
|
101
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
102
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
103
|
void LCD_DISCO_F769NI::SetLayerVisible(uint32_t LayerIndex, FunctionalState State)
|
|
Jerome Coutant
0:fd7c63b20d54
|
104
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
105
|
BSP_LCD_SetLayerVisible(LayerIndex, State);
|
|
Jerome Coutant
0:fd7c63b20d54
|
106
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
107
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
108
|
void LCD_DISCO_F769NI::SetTransparency(uint32_t LayerIndex, uint8_t Transparency)
|
|
Jerome Coutant
0:fd7c63b20d54
|
109
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
110
|
BSP_LCD_SetTransparency(LayerIndex, Transparency);
|
|
Jerome Coutant
0:fd7c63b20d54
|
111
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
112
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
113
|
void LCD_DISCO_F769NI::SetLayerAddress(uint32_t LayerIndex, uint32_t Address)
|
|
Jerome Coutant
0:fd7c63b20d54
|
114
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
115
|
BSP_LCD_SetLayerAddress(LayerIndex, Address);
|
|
Jerome Coutant
0:fd7c63b20d54
|
116
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
117
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
118
|
void LCD_DISCO_F769NI::SetLayerWindow(uint16_t LayerIndex, uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height)
|
|
Jerome Coutant
0:fd7c63b20d54
|
119
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
120
|
BSP_LCD_SetLayerWindow(LayerIndex, Xpos, Ypos, Width, Height);
|
|
Jerome Coutant
0:fd7c63b20d54
|
121
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
122
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
123
|
void LCD_DISCO_F769NI::SetColorKeying(uint32_t LayerIndex, uint32_t RGBValue)
|
|
Jerome Coutant
0:fd7c63b20d54
|
124
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
125
|
BSP_LCD_SetColorKeying(LayerIndex, RGBValue);
|
|
Jerome Coutant
0:fd7c63b20d54
|
126
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
127
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
128
|
void LCD_DISCO_F769NI::ResetColorKeying(uint32_t LayerIndex)
|
|
Jerome Coutant
0:fd7c63b20d54
|
129
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
130
|
BSP_LCD_ResetColorKeying(LayerIndex);
|
|
Jerome Coutant
0:fd7c63b20d54
|
131
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
132
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
133
|
void LCD_DISCO_F769NI::SetTextColor(uint32_t Color)
|
|
Jerome Coutant
0:fd7c63b20d54
|
134
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
135
|
BSP_LCD_SetTextColor(Color);
|
|
Jerome Coutant
0:fd7c63b20d54
|
136
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
137
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
138
|
uint32_t LCD_DISCO_F769NI::GetTextColor(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
139
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
140
|
return BSP_LCD_GetTextColor();
|
|
Jerome Coutant
0:fd7c63b20d54
|
141
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
142
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
143
|
void LCD_DISCO_F769NI::SetBackColor(uint32_t Color)
|
|
Jerome Coutant
0:fd7c63b20d54
|
144
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
145
|
BSP_LCD_SetBackColor(Color);
|
|
Jerome Coutant
0:fd7c63b20d54
|
146
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
147
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
148
|
uint32_t LCD_DISCO_F769NI::GetBackColor(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
149
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
150
|
return BSP_LCD_GetBackColor();
|
|
Jerome Coutant
0:fd7c63b20d54
|
151
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
152
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
153
|
void LCD_DISCO_F769NI::SetFont(sFONT *fonts)
|
|
Jerome Coutant
0:fd7c63b20d54
|
154
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
155
|
BSP_LCD_SetFont(fonts);
|
|
Jerome Coutant
0:fd7c63b20d54
|
156
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
157
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
158
|
sFONT *LCD_DISCO_F769NI::GetFont(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
159
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
160
|
return BSP_LCD_GetFont();
|
|
Jerome Coutant
0:fd7c63b20d54
|
161
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
162
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
163
|
uint32_t LCD_DISCO_F769NI::ReadPixel(uint16_t Xpos, uint16_t Ypos)
|
|
Jerome Coutant
0:fd7c63b20d54
|
164
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
165
|
return BSP_LCD_ReadPixel(Xpos, Ypos);
|
|
Jerome Coutant
0:fd7c63b20d54
|
166
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
167
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
168
|
void LCD_DISCO_F769NI::Clear(uint32_t Color)
|
|
Jerome Coutant
0:fd7c63b20d54
|
169
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
170
|
BSP_LCD_Clear(Color);
|
|
Jerome Coutant
0:fd7c63b20d54
|
171
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
172
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
173
|
void LCD_DISCO_F769NI::ClearStringLine(uint32_t Line)
|
|
Jerome Coutant
0:fd7c63b20d54
|
174
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
175
|
BSP_LCD_ClearStringLine(Line);
|
|
Jerome Coutant
0:fd7c63b20d54
|
176
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
177
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
178
|
void LCD_DISCO_F769NI::DisplayChar(uint16_t Xpos, uint16_t Ypos, uint8_t Ascii)
|
|
Jerome Coutant
0:fd7c63b20d54
|
179
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
180
|
BSP_LCD_DisplayChar(Xpos, Ypos, Ascii);
|
|
Jerome Coutant
0:fd7c63b20d54
|
181
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
182
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
183
|
void LCD_DISCO_F769NI::DisplayStringAt(uint16_t Xpos, uint16_t Ypos, uint8_t *Text, Text_AlignModeTypdef Mode)
|
|
Jerome Coutant
0:fd7c63b20d54
|
184
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
185
|
BSP_LCD_DisplayStringAt(Xpos, Ypos, Text, Mode);
|
|
Jerome Coutant
0:fd7c63b20d54
|
186
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
187
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
188
|
void LCD_DISCO_F769NI::DisplayStringAtLine(uint16_t Line, uint8_t *ptr)
|
|
Jerome Coutant
0:fd7c63b20d54
|
189
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
190
|
BSP_LCD_DisplayStringAtLine(Line, ptr);
|
|
Jerome Coutant
0:fd7c63b20d54
|
191
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
192
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
193
|
void LCD_DISCO_F769NI::DrawHLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length)
|
|
Jerome Coutant
0:fd7c63b20d54
|
194
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
195
|
BSP_LCD_DrawHLine(Xpos, Ypos, Length);
|
|
Jerome Coutant
0:fd7c63b20d54
|
196
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
197
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
198
|
void LCD_DISCO_F769NI::DrawVLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length)
|
|
Jerome Coutant
0:fd7c63b20d54
|
199
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
200
|
BSP_LCD_DrawVLine(Xpos, Ypos, Length);
|
|
Jerome Coutant
0:fd7c63b20d54
|
201
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
202
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
203
|
void LCD_DISCO_F769NI::DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2)
|
|
Jerome Coutant
0:fd7c63b20d54
|
204
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
205
|
BSP_LCD_DrawLine(x1, y1, x2, y2);
|
|
Jerome Coutant
0:fd7c63b20d54
|
206
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
207
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
208
|
void LCD_DISCO_F769NI::DrawRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height)
|
|
Jerome Coutant
0:fd7c63b20d54
|
209
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
210
|
BSP_LCD_DrawRect(Xpos, Ypos, Width, Height);
|
|
Jerome Coutant
0:fd7c63b20d54
|
211
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
212
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
213
|
void LCD_DISCO_F769NI::DrawCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius)
|
|
Jerome Coutant
0:fd7c63b20d54
|
214
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
215
|
BSP_LCD_DrawCircle(Xpos, Ypos, Radius);
|
|
Jerome Coutant
0:fd7c63b20d54
|
216
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
217
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
218
|
void LCD_DISCO_F769NI::DrawPolygon(pPoint Points, uint16_t PointCount)
|
|
Jerome Coutant
0:fd7c63b20d54
|
219
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
220
|
BSP_LCD_DrawPolygon(Points, PointCount);
|
|
Jerome Coutant
0:fd7c63b20d54
|
221
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
222
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
223
|
void LCD_DISCO_F769NI::DrawEllipse(int Xpos, int Ypos, int XRadius, int YRadius)
|
|
Jerome Coutant
0:fd7c63b20d54
|
224
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
225
|
BSP_LCD_DrawEllipse(Xpos, Ypos, XRadius, YRadius);
|
|
Jerome Coutant
0:fd7c63b20d54
|
226
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
227
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
228
|
void LCD_DISCO_F769NI::DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp)
|
|
Jerome Coutant
0:fd7c63b20d54
|
229
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
230
|
BSP_LCD_DrawBitmap(Xpos, Ypos, pbmp);
|
|
Jerome Coutant
0:fd7c63b20d54
|
231
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
232
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
233
|
void LCD_DISCO_F769NI::FillRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height)
|
|
Jerome Coutant
0:fd7c63b20d54
|
234
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
235
|
BSP_LCD_FillRect(Xpos, Ypos, Width, Height);
|
|
Jerome Coutant
0:fd7c63b20d54
|
236
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
237
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
238
|
void LCD_DISCO_F769NI::FillCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius)
|
|
Jerome Coutant
0:fd7c63b20d54
|
239
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
240
|
BSP_LCD_FillCircle(Xpos, Ypos, Radius);
|
|
Jerome Coutant
0:fd7c63b20d54
|
241
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
242
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
243
|
void LCD_DISCO_F769NI::FillPolygon(pPoint Points, uint16_t PointCount)
|
|
Jerome Coutant
0:fd7c63b20d54
|
244
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
245
|
BSP_LCD_FillPolygon(Points, PointCount);
|
|
Jerome Coutant
0:fd7c63b20d54
|
246
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
247
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
248
|
void LCD_DISCO_F769NI::FillEllipse(int Xpos, int Ypos, int XRadius, int YRadius)
|
|
Jerome Coutant
0:fd7c63b20d54
|
249
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
250
|
BSP_LCD_FillEllipse(Xpos, Ypos, XRadius, YRadius);
|
|
Jerome Coutant
0:fd7c63b20d54
|
251
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
252
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
253
|
void LCD_DISCO_F769NI::DisplayOn(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
254
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
255
|
BSP_LCD_DisplayOn();
|
|
Jerome Coutant
0:fd7c63b20d54
|
256
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
257
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
258
|
void LCD_DISCO_F769NI::DisplayOff(void)
|
|
Jerome Coutant
0:fd7c63b20d54
|
259
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
260
|
BSP_LCD_DisplayOff();
|
|
Jerome Coutant
0:fd7c63b20d54
|
261
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
262
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
263
|
void LCD_DISCO_F769NI::SetBrightness(uint8_t BrightnessValue)
|
|
Jerome Coutant
0:fd7c63b20d54
|
264
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
265
|
BSP_LCD_SetBrightness(BrightnessValue);
|
|
Jerome Coutant
0:fd7c63b20d54
|
266
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
267
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
268
|
void LCD_DISCO_F769NI::DrawPixel(uint16_t Xpos, uint16_t Ypos, uint32_t RGB_Code)
|
|
Jerome Coutant
0:fd7c63b20d54
|
269
|
{
|
|
Jerome Coutant
0:fd7c63b20d54
|
270
|
BSP_LCD_DrawPixel(Xpos, Ypos, RGB_Code);
|
|
Jerome Coutant
0:fd7c63b20d54
|
271
|
}
|
|
Jerome Coutant
0:fd7c63b20d54
|
272
|
|
|
Jerome Coutant
0:fd7c63b20d54
|
273
|
//=================================================================================================================
|
|
Jerome Coutant
0:fd7c63b20d54
|
274
|
// Private methods
|
|
Jerome Coutant
0:fd7c63b20d54
|
275
|
//=================================================================================================================
|
|