Class to drive the LCD Glass display (GH08172T device) present on DISCO_L476VG board.

Dependents:   DISCO_L476VG_GlassLCD DISCO_L476VG_UART DISCO_L476VG_leds_buttons_carter DISCO_L476VG_ ... more

Committer:
bcostm
Date:
Fri Aug 28 13:03:25 2015 +0000
Revision:
0:6ac2ed34f595
First release.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:6ac2ed34f595 1 /* Copyright (c) 2010-2011 mbed.org, MIT License
bcostm 0:6ac2ed34f595 2 *
bcostm 0:6ac2ed34f595 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
bcostm 0:6ac2ed34f595 4 * and associated documentation files (the "Software"), to deal in the Software without
bcostm 0:6ac2ed34f595 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
bcostm 0:6ac2ed34f595 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
bcostm 0:6ac2ed34f595 7 * Software is furnished to do so, subject to the following conditions:
bcostm 0:6ac2ed34f595 8 *
bcostm 0:6ac2ed34f595 9 * The above copyright notice and this permission notice shall be included in all copies or
bcostm 0:6ac2ed34f595 10 * substantial portions of the Software.
bcostm 0:6ac2ed34f595 11 *
bcostm 0:6ac2ed34f595 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
bcostm 0:6ac2ed34f595 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
bcostm 0:6ac2ed34f595 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
bcostm 0:6ac2ed34f595 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
bcostm 0:6ac2ed34f595 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
bcostm 0:6ac2ed34f595 17 */
bcostm 0:6ac2ed34f595 18
bcostm 0:6ac2ed34f595 19 #include "LCD_DISCO_L476VG.h"
bcostm 0:6ac2ed34f595 20
bcostm 0:6ac2ed34f595 21 // Constructor
bcostm 0:6ac2ed34f595 22 LCD_DISCO_L476VG::LCD_DISCO_L476VG()
bcostm 0:6ac2ed34f595 23 {
bcostm 0:6ac2ed34f595 24 BSP_LCD_GLASS_Init();
bcostm 0:6ac2ed34f595 25 }
bcostm 0:6ac2ed34f595 26
bcostm 0:6ac2ed34f595 27 // Destructor
bcostm 0:6ac2ed34f595 28 LCD_DISCO_L476VG::~LCD_DISCO_L476VG()
bcostm 0:6ac2ed34f595 29 {
bcostm 0:6ac2ed34f595 30 BSP_LCD_GLASS_DeInit();
bcostm 0:6ac2ed34f595 31 }
bcostm 0:6ac2ed34f595 32
bcostm 0:6ac2ed34f595 33 //=================================================================================================================
bcostm 0:6ac2ed34f595 34 // Public methods
bcostm 0:6ac2ed34f595 35 //=================================================================================================================
bcostm 0:6ac2ed34f595 36
bcostm 0:6ac2ed34f595 37 void LCD_DISCO_L476VG::Init(void)
bcostm 0:6ac2ed34f595 38 {
bcostm 0:6ac2ed34f595 39 BSP_LCD_GLASS_Init();
bcostm 0:6ac2ed34f595 40 }
bcostm 0:6ac2ed34f595 41
bcostm 0:6ac2ed34f595 42 void LCD_DISCO_L476VG::DeInit(void)
bcostm 0:6ac2ed34f595 43 {
bcostm 0:6ac2ed34f595 44 BSP_LCD_GLASS_DeInit();
bcostm 0:6ac2ed34f595 45 }
bcostm 0:6ac2ed34f595 46
bcostm 0:6ac2ed34f595 47 void LCD_DISCO_L476VG::BlinkConfig(uint32_t BlinkMode, uint32_t BlinkFrequency)
bcostm 0:6ac2ed34f595 48 {
bcostm 0:6ac2ed34f595 49 BSP_LCD_GLASS_BlinkConfig(BlinkMode, BlinkFrequency);
bcostm 0:6ac2ed34f595 50 }
bcostm 0:6ac2ed34f595 51
bcostm 0:6ac2ed34f595 52 void LCD_DISCO_L476VG::Contrast(uint32_t Contrast)
bcostm 0:6ac2ed34f595 53 {
bcostm 0:6ac2ed34f595 54 BSP_LCD_GLASS_Contrast(Contrast);
bcostm 0:6ac2ed34f595 55 }
bcostm 0:6ac2ed34f595 56
bcostm 0:6ac2ed34f595 57 void LCD_DISCO_L476VG::DisplayChar(uint8_t* ch, Point_Typedef Point, DoublePoint_Typedef Column, DigitPosition_Typedef Position)
bcostm 0:6ac2ed34f595 58 {
bcostm 0:6ac2ed34f595 59 BSP_LCD_GLASS_DisplayChar(ch, Point, Column, Position);
bcostm 0:6ac2ed34f595 60 }
bcostm 0:6ac2ed34f595 61
bcostm 0:6ac2ed34f595 62 void LCD_DISCO_L476VG::DisplayString(uint8_t* ptr)
bcostm 0:6ac2ed34f595 63 {
bcostm 0:6ac2ed34f595 64 BSP_LCD_GLASS_DisplayString(ptr);
bcostm 0:6ac2ed34f595 65 }
bcostm 0:6ac2ed34f595 66
bcostm 0:6ac2ed34f595 67 void LCD_DISCO_L476VG::DisplayStrDeci(uint16_t* ptr)
bcostm 0:6ac2ed34f595 68 {
bcostm 0:6ac2ed34f595 69 BSP_LCD_GLASS_DisplayStrDeci(ptr);
bcostm 0:6ac2ed34f595 70 }
bcostm 0:6ac2ed34f595 71
bcostm 0:6ac2ed34f595 72 void LCD_DISCO_L476VG::ScrollSentence(uint8_t* ptr, uint16_t nScroll, uint16_t ScrollSpeed)
bcostm 0:6ac2ed34f595 73 {
bcostm 0:6ac2ed34f595 74 BSP_LCD_GLASS_ScrollSentence(ptr, nScroll, ScrollSpeed);
bcostm 0:6ac2ed34f595 75 }
bcostm 0:6ac2ed34f595 76
bcostm 0:6ac2ed34f595 77 void LCD_DISCO_L476VG::DisplayBar(uint32_t BarId)
bcostm 0:6ac2ed34f595 78 {
bcostm 0:6ac2ed34f595 79 BSP_LCD_GLASS_DisplayBar(BarId);
bcostm 0:6ac2ed34f595 80 }
bcostm 0:6ac2ed34f595 81
bcostm 0:6ac2ed34f595 82 void LCD_DISCO_L476VG::ClearBar(uint32_t BarId)
bcostm 0:6ac2ed34f595 83 {
bcostm 0:6ac2ed34f595 84 BSP_LCD_GLASS_ClearBar(BarId);
bcostm 0:6ac2ed34f595 85 }
bcostm 0:6ac2ed34f595 86
bcostm 0:6ac2ed34f595 87 void LCD_DISCO_L476VG::BarLevelConfig(uint8_t BarLevel)
bcostm 0:6ac2ed34f595 88 {
bcostm 0:6ac2ed34f595 89 BSP_LCD_GLASS_BarLevelConfig(BarLevel);
bcostm 0:6ac2ed34f595 90 }
bcostm 0:6ac2ed34f595 91
bcostm 0:6ac2ed34f595 92 void LCD_DISCO_L476VG::Clear(void)
bcostm 0:6ac2ed34f595 93 {
bcostm 0:6ac2ed34f595 94 BSP_LCD_GLASS_Clear();
bcostm 0:6ac2ed34f595 95 }
bcostm 0:6ac2ed34f595 96
bcostm 0:6ac2ed34f595 97 //=================================================================================================================
bcostm 0:6ac2ed34f595 98 // Private methods
bcostm 0:6ac2ed34f595 99 //=================================================================================================================