This class drives the LCD display present on the DISCO_F469NI board.

Dependents:   DISCO-F469NI_LCDTS_GUI_demo DISCO-F469NI_LCD_demo Configurable_Robots DISCO-F469NI_LCD_demo ... more

Committer:
bcostm
Date:
Fri Dec 18 07:31:48 2015 +0000
Revision:
0:d38374480318
Initial version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:d38374480318 1 /* Copyright (c) 2010-2011 mbed.org, MIT License
bcostm 0:d38374480318 2 *
bcostm 0:d38374480318 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
bcostm 0:d38374480318 4 * and associated documentation files (the "Software"), to deal in the Software without
bcostm 0:d38374480318 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
bcostm 0:d38374480318 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
bcostm 0:d38374480318 7 * Software is furnished to do so, subject to the following conditions:
bcostm 0:d38374480318 8 *
bcostm 0:d38374480318 9 * The above copyright notice and this permission notice shall be included in all copies or
bcostm 0:d38374480318 10 * substantial portions of the Software.
bcostm 0:d38374480318 11 *
bcostm 0:d38374480318 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
bcostm 0:d38374480318 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
bcostm 0:d38374480318 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
bcostm 0:d38374480318 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
bcostm 0:d38374480318 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
bcostm 0:d38374480318 17 */
bcostm 0:d38374480318 18
bcostm 0:d38374480318 19 #ifndef __LCD_DISCO_F469NI_H
bcostm 0:d38374480318 20 #define __LCD_DISCO_F469NI_H
bcostm 0:d38374480318 21
bcostm 0:d38374480318 22 #ifdef TARGET_DISCO_F469NI
bcostm 0:d38374480318 23
bcostm 0:d38374480318 24 #include "mbed.h"
bcostm 0:d38374480318 25 #include "stm32469i_discovery_lcd.h"
bcostm 0:d38374480318 26
bcostm 0:d38374480318 27 /*
bcostm 0:d38374480318 28 This class drives the LCD display (xxxxxx) present on DISCO_F469NI board.
bcostm 0:d38374480318 29
bcostm 0:d38374480318 30 Usage:
bcostm 0:d38374480318 31
bcostm 0:d38374480318 32 #include "mbed.h"
bcostm 0:d38374480318 33 #include "LCD_DISCO_F469NI.h"
bcostm 0:d38374480318 34
bcostm 0:d38374480318 35 LCD_DISCO_F469NI lcd;
bcostm 0:d38374480318 36
bcostm 0:d38374480318 37 int main()
bcostm 0:d38374480318 38 {
bcostm 0:d38374480318 39 lcd.Clear(LCD_COLOR_BLUE);
bcostm 0:d38374480318 40 lcd.SetBackColor(LCD_COLOR_BLUE);
bcostm 0:d38374480318 41 lcd.SetTextColor(LCD_COLOR_WHITE);
bcostm 0:d38374480318 42 lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"HELLO", CENTER_MODE);
bcostm 0:d38374480318 43 while(1)
bcostm 0:d38374480318 44 {
bcostm 0:d38374480318 45 }
bcostm 0:d38374480318 46 }
bcostm 0:d38374480318 47 */
bcostm 0:d38374480318 48 class LCD_DISCO_F469NI
bcostm 0:d38374480318 49 {
bcostm 0:d38374480318 50
bcostm 0:d38374480318 51 public:
bcostm 0:d38374480318 52 //! Constructor
bcostm 0:d38374480318 53 LCD_DISCO_F469NI();
bcostm 0:d38374480318 54
bcostm 0:d38374480318 55 //! Destructor
bcostm 0:d38374480318 56 ~LCD_DISCO_F469NI();
bcostm 0:d38374480318 57
bcostm 0:d38374480318 58
bcostm 0:d38374480318 59 /**
bcostm 0:d38374480318 60 * @brief Initializes the DSI LCD.
bcostm 0:d38374480318 61 * @param None
bcostm 0:d38374480318 62 * @retval LCD state
bcostm 0:d38374480318 63 */
bcostm 0:d38374480318 64 uint8_t Init(void);
bcostm 0:d38374480318 65
bcostm 0:d38374480318 66 /**
bcostm 0:d38374480318 67 * @brief Initializes the DSI LCD.
bcostm 0:d38374480318 68 * The initialization is done as below:
bcostm 0:d38374480318 69 * - DSI PLL initialization
bcostm 0:d38374480318 70 * - DSI initialization
bcostm 0:d38374480318 71 * - LTDC initialization
bcostm 0:d38374480318 72 * - OTM8009A LCD Display IC Driver initialization
bcostm 0:d38374480318 73 * @param None
bcostm 0:d38374480318 74 * @retval LCD state
bcostm 0:d38374480318 75 */
bcostm 0:d38374480318 76 uint8_t InitEx(LCD_OrientationTypeDef orientation);
bcostm 0:d38374480318 77
bcostm 0:d38374480318 78 /**
bcostm 0:d38374480318 79 * @brief BSP LCD Reset
bcostm 0:d38374480318 80 * Hw reset the LCD DSI activating its XRES signal (active low for some time);
bcostm 0:d38374480318 81 * and desactivating it later.
bcostm 0:d38374480318 82 * This signal is only cabled on Discovery Rev B and beyond.
bcostm 0:d38374480318 83 */
bcostm 0:d38374480318 84 void Reset(void);
bcostm 0:d38374480318 85
bcostm 0:d38374480318 86 /**
bcostm 0:d38374480318 87 * @brief Gets the LCD X size.
bcostm 0:d38374480318 88 * @retval Used LCD X size
bcostm 0:d38374480318 89 */
bcostm 0:d38374480318 90 uint32_t GetXSize(void);
bcostm 0:d38374480318 91
bcostm 0:d38374480318 92 /**
bcostm 0:d38374480318 93 * @brief Gets the LCD Y size.
bcostm 0:d38374480318 94 * @retval Used LCD Y size
bcostm 0:d38374480318 95 */
bcostm 0:d38374480318 96 uint32_t GetYSize(void);
bcostm 0:d38374480318 97
bcostm 0:d38374480318 98 /**
bcostm 0:d38374480318 99 * @brief Set the LCD X size.
bcostm 0:d38374480318 100 * @param imageWidthPixels : uint32_t image width in pixels unit
bcostm 0:d38374480318 101 * @retval None
bcostm 0:d38374480318 102 */
bcostm 0:d38374480318 103 void SetXSize(uint32_t imageWidthPixels);
bcostm 0:d38374480318 104
bcostm 0:d38374480318 105 /**
bcostm 0:d38374480318 106 * @brief Set the LCD Y size.
bcostm 0:d38374480318 107 * @param imageHeightPixels : uint32_t image height in lines unit
bcostm 0:d38374480318 108 */
bcostm 0:d38374480318 109 void SetYSize(uint32_t imageHeightPixels);
bcostm 0:d38374480318 110
bcostm 0:d38374480318 111 /**
bcostm 0:d38374480318 112 * @brief Initializes the LCD layers.
bcostm 0:d38374480318 113 * @param LayerIndex: Layer foreground or background
bcostm 0:d38374480318 114 * @param FB_Address: Layer frame buffer
bcostm 0:d38374480318 115 * @retval None
bcostm 0:d38374480318 116 */
bcostm 0:d38374480318 117 void LayerDefaultInit(uint16_t LayerIndex, uint32_t FB_Address);
bcostm 0:d38374480318 118
bcostm 0:d38374480318 119 /**
bcostm 0:d38374480318 120 * @brief Selects the LCD Layer.
bcostm 0:d38374480318 121 * @param LayerIndex: Layer foreground or background
bcostm 0:d38374480318 122 */
bcostm 0:d38374480318 123 void SelectLayer(uint32_t LayerIndex);
bcostm 0:d38374480318 124
bcostm 0:d38374480318 125 /**
bcostm 0:d38374480318 126 * @brief Sets an LCD Layer visible
bcostm 0:d38374480318 127 * @param LayerIndex: Visible Layer
bcostm 0:d38374480318 128 * @param State: New state of the specified layer
bcostm 0:d38374480318 129 * This parameter can be one of the following values:
bcostm 0:d38374480318 130 * @arg ENABLE
bcostm 0:d38374480318 131 * @arg DISABLE
bcostm 0:d38374480318 132 */
bcostm 0:d38374480318 133 void SetLayerVisible(uint32_t LayerIndex, FunctionalState State);
bcostm 0:d38374480318 134
bcostm 0:d38374480318 135 /**
bcostm 0:d38374480318 136 * @brief Configures the transparency.
bcostm 0:d38374480318 137 * @param LayerIndex: Layer foreground or background.
bcostm 0:d38374480318 138 * @param Transparency: Transparency
bcostm 0:d38374480318 139 * This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF
bcostm 0:d38374480318 140 */
bcostm 0:d38374480318 141 void SetTransparency(uint32_t LayerIndex, uint8_t Transparency);
bcostm 0:d38374480318 142
bcostm 0:d38374480318 143 /**
bcostm 0:d38374480318 144 * @brief Sets an LCD layer frame buffer address.
bcostm 0:d38374480318 145 * @param LayerIndex: Layer foreground or background
bcostm 0:d38374480318 146 * @param Address: New LCD frame buffer value
bcostm 0:d38374480318 147 */
bcostm 0:d38374480318 148 void SetLayerAddress(uint32_t LayerIndex, uint32_t Address);
bcostm 0:d38374480318 149
bcostm 0:d38374480318 150 /**
bcostm 0:d38374480318 151 * @brief Sets display window.
bcostm 0:d38374480318 152 * @param LayerIndex: Layer index
bcostm 0:d38374480318 153 * @param Xpos: LCD X position
bcostm 0:d38374480318 154 * @param Ypos: LCD Y position
bcostm 0:d38374480318 155 * @param Width: LCD window width
bcostm 0:d38374480318 156 * @param Height: LCD window height
bcostm 0:d38374480318 157 */
bcostm 0:d38374480318 158 void SetLayerWindow(uint16_t LayerIndex, uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height);
bcostm 0:d38374480318 159
bcostm 0:d38374480318 160 /**
bcostm 0:d38374480318 161 * @brief Configures and sets the color keying.
bcostm 0:d38374480318 162 * @param LayerIndex: Layer foreground or background
bcostm 0:d38374480318 163 * @param RGBValue: Color reference
bcostm 0:d38374480318 164 */
bcostm 0:d38374480318 165 void SetColorKeying(uint32_t LayerIndex, uint32_t RGBValue);
bcostm 0:d38374480318 166
bcostm 0:d38374480318 167 /**
bcostm 0:d38374480318 168 * @brief Disables the color keying.
bcostm 0:d38374480318 169 * @param LayerIndex: Layer foreground or background
bcostm 0:d38374480318 170 */
bcostm 0:d38374480318 171 void ResetColorKeying(uint32_t LayerIndex);
bcostm 0:d38374480318 172
bcostm 0:d38374480318 173 /**
bcostm 0:d38374480318 174 * @brief Sets the LCD text color.
bcostm 0:d38374480318 175 * @param Color: Text color code ARGB(8-8-8-8);
bcostm 0:d38374480318 176 */
bcostm 0:d38374480318 177 void SetTextColor(uint32_t Color);
bcostm 0:d38374480318 178
bcostm 0:d38374480318 179 /**
bcostm 0:d38374480318 180 * @brief Gets the LCD text color.
bcostm 0:d38374480318 181 * @retval Used text color.
bcostm 0:d38374480318 182 */
bcostm 0:d38374480318 183 uint32_t GetTextColor(void);
bcostm 0:d38374480318 184
bcostm 0:d38374480318 185 /**
bcostm 0:d38374480318 186 * @brief Sets the LCD background color.
bcostm 0:d38374480318 187 * @param Color: Layer background color code ARGB(8-8-8-8);
bcostm 0:d38374480318 188 */
bcostm 0:d38374480318 189 void SetBackColor(uint32_t Color);
bcostm 0:d38374480318 190
bcostm 0:d38374480318 191 /**
bcostm 0:d38374480318 192 * @brief Gets the LCD background color.
bcostm 0:d38374480318 193 * @retval Used background color
bcostm 0:d38374480318 194 */
bcostm 0:d38374480318 195 uint32_t GetBackColor(void);
bcostm 0:d38374480318 196
bcostm 0:d38374480318 197 /**
bcostm 0:d38374480318 198 * @brief Sets the LCD text font.
bcostm 0:d38374480318 199 * @param fonts: Layer font to be used
bcostm 0:d38374480318 200 */
bcostm 0:d38374480318 201 void SetFont(sFONT *fonts);
bcostm 0:d38374480318 202
bcostm 0:d38374480318 203 /**
bcostm 0:d38374480318 204 * @brief Gets the LCD text font.
bcostm 0:d38374480318 205 * @retval Used layer font
bcostm 0:d38374480318 206 */
bcostm 0:d38374480318 207 sFONT *GetFont(void);
bcostm 0:d38374480318 208
bcostm 0:d38374480318 209 /**
bcostm 0:d38374480318 210 * @brief Reads an LCD pixel.
bcostm 0:d38374480318 211 * @param Xpos: X position
bcostm 0:d38374480318 212 * @param Ypos: Y position
bcostm 0:d38374480318 213 * @retval RGB pixel color
bcostm 0:d38374480318 214 */
bcostm 0:d38374480318 215 uint32_t ReadPixel(uint16_t Xpos, uint16_t Ypos);
bcostm 0:d38374480318 216
bcostm 0:d38374480318 217 /**
bcostm 0:d38374480318 218 * @brief Clears the whole currently active layer of LTDC.
bcostm 0:d38374480318 219 * @param Color: Color of the background
bcostm 0:d38374480318 220 */
bcostm 0:d38374480318 221 void Clear(uint32_t Color);
bcostm 0:d38374480318 222
bcostm 0:d38374480318 223 /**
bcostm 0:d38374480318 224 * @brief Clears the selected line in currently active layer.
bcostm 0:d38374480318 225 * @param Line: Line to be cleared
bcostm 0:d38374480318 226 */
bcostm 0:d38374480318 227 void ClearStringLine(uint32_t Line);
bcostm 0:d38374480318 228
bcostm 0:d38374480318 229 /**
bcostm 0:d38374480318 230 * @brief Displays one character in currently active layer.
bcostm 0:d38374480318 231 * @param Xpos: Start column address
bcostm 0:d38374480318 232 * @param Ypos: Line where to display the character shape.
bcostm 0:d38374480318 233 * @param Ascii: Character ascii code
bcostm 0:d38374480318 234 * This parameter must be a number between Min_Data = 0x20 and Max_Data = 0x7E
bcostm 0:d38374480318 235 */
bcostm 0:d38374480318 236 void DisplayChar(uint16_t Xpos, uint16_t Ypos, uint8_t Ascii);
bcostm 0:d38374480318 237
bcostm 0:d38374480318 238 /**
bcostm 0:d38374480318 239 * @brief Displays characters in currently active layer.
bcostm 0:d38374480318 240 * @param Xpos: X position (in pixel);
bcostm 0:d38374480318 241 * @param Ypos: Y position (in pixel);
bcostm 0:d38374480318 242 * @param Text: Pointer to string to display on LCD
bcostm 0:d38374480318 243 * @param Mode: Display mode
bcostm 0:d38374480318 244 * This parameter can be one of the following values:
bcostm 0:d38374480318 245 * @arg CENTER_MODE
bcostm 0:d38374480318 246 * @arg RIGHT_MODE
bcostm 0:d38374480318 247 * @arg LEFT_MODE
bcostm 0:d38374480318 248 */
bcostm 0:d38374480318 249 void DisplayStringAt(uint16_t Xpos, uint16_t Ypos, uint8_t *Text, Text_AlignModeTypdef Mode);
bcostm 0:d38374480318 250
bcostm 0:d38374480318 251 /**
bcostm 0:d38374480318 252 * @brief Displays a maximum of 60 characters on the LCD.
bcostm 0:d38374480318 253 * @param Line: Line where to display the character shape
bcostm 0:d38374480318 254 * @param ptr: Pointer to string to display on LCD
bcostm 0:d38374480318 255 */
bcostm 0:d38374480318 256 void DisplayStringAtLine(uint16_t Line, uint8_t *ptr);
bcostm 0:d38374480318 257
bcostm 0:d38374480318 258 /**
bcostm 0:d38374480318 259 * @brief Draws an horizontal line in currently active layer.
bcostm 0:d38374480318 260 * @param Xpos: X position
bcostm 0:d38374480318 261 * @param Ypos: Y position
bcostm 0:d38374480318 262 * @param Length: Line length
bcostm 0:d38374480318 263 */
bcostm 0:d38374480318 264 void DrawHLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length);
bcostm 0:d38374480318 265
bcostm 0:d38374480318 266 /**
bcostm 0:d38374480318 267 * @brief Draws a vertical line in currently active layer.
bcostm 0:d38374480318 268 * @param Xpos: X position
bcostm 0:d38374480318 269 * @param Ypos: Y position
bcostm 0:d38374480318 270 * @param Length: Line length
bcostm 0:d38374480318 271 */
bcostm 0:d38374480318 272 void DrawVLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length);
bcostm 0:d38374480318 273
bcostm 0:d38374480318 274 /**
bcostm 0:d38374480318 275 * @brief Draws an uni-line (between two points); in currently active layer.
bcostm 0:d38374480318 276 * @param x1: Point 1 X position
bcostm 0:d38374480318 277 * @param y1: Point 1 Y position
bcostm 0:d38374480318 278 * @param x2: Point 2 X position
bcostm 0:d38374480318 279 * @param y2: Point 2 Y position
bcostm 0:d38374480318 280 */
bcostm 0:d38374480318 281 void DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2);
bcostm 0:d38374480318 282
bcostm 0:d38374480318 283 /**
bcostm 0:d38374480318 284 * @brief Draws a rectangle in currently active layer.
bcostm 0:d38374480318 285 * @param Xpos: X position
bcostm 0:d38374480318 286 * @param Ypos: Y position
bcostm 0:d38374480318 287 * @param Width: Rectangle width
bcostm 0:d38374480318 288 * @param Height: Rectangle height
bcostm 0:d38374480318 289 */
bcostm 0:d38374480318 290 void DrawRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height);
bcostm 0:d38374480318 291
bcostm 0:d38374480318 292 /**
bcostm 0:d38374480318 293 * @brief Draws a circle in currently active layer.
bcostm 0:d38374480318 294 * @param Xpos: X position
bcostm 0:d38374480318 295 * @param Ypos: Y position
bcostm 0:d38374480318 296 * @param Radius: Circle radius
bcostm 0:d38374480318 297 */
bcostm 0:d38374480318 298 void DrawCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius);
bcostm 0:d38374480318 299
bcostm 0:d38374480318 300 /**
bcostm 0:d38374480318 301 * @brief Draws an poly-line (between many points); in currently active layer.
bcostm 0:d38374480318 302 * @param Points: Pointer to the points array
bcostm 0:d38374480318 303 * @param PointCount: Number of points
bcostm 0:d38374480318 304 */
bcostm 0:d38374480318 305 void DrawPolygon(pPoint Points, uint16_t PointCount);
bcostm 0:d38374480318 306
bcostm 0:d38374480318 307 /**
bcostm 0:d38374480318 308 * @brief Draws an ellipse on LCD in currently active layer.
bcostm 0:d38374480318 309 * @param Xpos: X position
bcostm 0:d38374480318 310 * @param Ypos: Y position
bcostm 0:d38374480318 311 * @param XRadius: Ellipse X radius
bcostm 0:d38374480318 312 * @param YRadius: Ellipse Y radius
bcostm 0:d38374480318 313 */
bcostm 0:d38374480318 314 void DrawEllipse(int Xpos, int Ypos, int XRadius, int YRadius);
bcostm 0:d38374480318 315
bcostm 0:d38374480318 316 /**
bcostm 0:d38374480318 317 * @brief Draws a bitmap picture loaded in the internal Flash (32 bpp); in currently active layer.
bcostm 0:d38374480318 318 * @param Xpos: Bmp X position in the LCD
bcostm 0:d38374480318 319 * @param Ypos: Bmp Y position in the LCD
bcostm 0:d38374480318 320 * @param pbmp: Pointer to Bmp picture address in the internal Flash
bcostm 0:d38374480318 321 */
bcostm 0:d38374480318 322 void DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp);
bcostm 0:d38374480318 323
bcostm 0:d38374480318 324 /**
bcostm 0:d38374480318 325 * @brief Draws a full rectangle in currently active layer.
bcostm 0:d38374480318 326 * @param Xpos: X position
bcostm 0:d38374480318 327 * @param Ypos: Y position
bcostm 0:d38374480318 328 * @param Width: Rectangle width
bcostm 0:d38374480318 329 * @param Height: Rectangle height
bcostm 0:d38374480318 330 */
bcostm 0:d38374480318 331 void FillRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height);
bcostm 0:d38374480318 332
bcostm 0:d38374480318 333 /**
bcostm 0:d38374480318 334 * @brief Draws a full circle in currently active layer.
bcostm 0:d38374480318 335 * @param Xpos: X position
bcostm 0:d38374480318 336 * @param Ypos: Y position
bcostm 0:d38374480318 337 * @param Radius: Circle radius
bcostm 0:d38374480318 338 */
bcostm 0:d38374480318 339 void FillCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius);
bcostm 0:d38374480318 340
bcostm 0:d38374480318 341 /**
bcostm 0:d38374480318 342 * @brief Draws a full poly-line (between many points); in currently active layer.
bcostm 0:d38374480318 343 * @param Points: Pointer to the points array
bcostm 0:d38374480318 344 * @param PointCount: Number of points
bcostm 0:d38374480318 345 */
bcostm 0:d38374480318 346 void FillPolygon(pPoint Points, uint16_t PointCount);
bcostm 0:d38374480318 347
bcostm 0:d38374480318 348 /**
bcostm 0:d38374480318 349 * @brief Draws a full ellipse in currently active layer.
bcostm 0:d38374480318 350 * @param Xpos: X position
bcostm 0:d38374480318 351 * @param Ypos: Y position
bcostm 0:d38374480318 352 * @param XRadius: Ellipse X radius
bcostm 0:d38374480318 353 * @param YRadius: Ellipse Y radius
bcostm 0:d38374480318 354 */
bcostm 0:d38374480318 355 void FillEllipse(int Xpos, int Ypos, int XRadius, int YRadius);
bcostm 0:d38374480318 356
bcostm 0:d38374480318 357 /**
bcostm 0:d38374480318 358 * @brief Switch back on the display if was switched off by previous call of DisplayOff();.
bcostm 0:d38374480318 359 * Exit DSI ULPM mode if was allowed and configured in Dsi Configuration.
bcostm 0:d38374480318 360 */
bcostm 0:d38374480318 361 void DisplayOn(void);
bcostm 0:d38374480318 362
bcostm 0:d38374480318 363 /**
bcostm 0:d38374480318 364 * @brief Switch Off the display.
bcostm 0:d38374480318 365 * Enter DSI ULPM mode if was allowed and configured in Dsi Configuration.
bcostm 0:d38374480318 366 */
bcostm 0:d38374480318 367 void DisplayOff(void);
bcostm 0:d38374480318 368
bcostm 0:d38374480318 369 /**
bcostm 0:d38374480318 370 * @brief Draws a pixel on LCD.
bcostm 0:d38374480318 371 * @param Xpos: X position
bcostm 0:d38374480318 372 * @param Ypos: Y position
bcostm 0:d38374480318 373 * @param RGB_Code: Pixel color in ARGB mode (8-8-8-8);
bcostm 0:d38374480318 374 */
bcostm 0:d38374480318 375 void DrawPixel(uint16_t Xpos, uint16_t Ypos, uint32_t RGB_Code);
bcostm 0:d38374480318 376
bcostm 0:d38374480318 377 private:
bcostm 0:d38374480318 378
bcostm 0:d38374480318 379 };
bcostm 0:d38374480318 380
bcostm 0:d38374480318 381 #else
bcostm 0:d38374480318 382 #error "This class must be used with DISCO_F469NI board only."
bcostm 0:d38374480318 383 #endif // TARGET_DISCO_F469NI
bcostm 0:d38374480318 384
bcostm 0:d38374480318 385 #endif