a

Dependents:   2b

Committer:
Dom952
Date:
Sat Apr 23 17:42:30 2016 +0000
Revision:
0:2459f0b51846
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Dom952 0:2459f0b51846 1 #include "LCD_DISCO_F429ZI.h"
Dom952 0:2459f0b51846 2 #include "Led_Lcd.h"
Dom952 0:2459f0b51846 3
Dom952 0:2459f0b51846 4
Dom952 0:2459f0b51846 5 LedLcd::LedLcd (void)
Dom952 0:2459f0b51846 6 {
Dom952 0:2459f0b51846 7 BSP_LCD_SetFont(&Font24);
Dom952 0:2459f0b51846 8 lcd.Clear(LCD_COLOR_BLACK);
Dom952 0:2459f0b51846 9 }
Dom952 0:2459f0b51846 10
Dom952 0:2459f0b51846 11 void LedLcd::On (unsigned char ucLed_Number)
Dom952 0:2459f0b51846 12 {
Dom952 0:2459f0b51846 13 for ( int i = 0; i < 4; i++ )
Dom952 0:2459f0b51846 14 {
Dom952 0:2459f0b51846 15 lcd.SetTextColor(LCD_COLOR_GREEN);
Dom952 0:2459f0b51846 16 lcd.DrawRect(0,80*i,80,80);
Dom952 0:2459f0b51846 17 if ( ucLed_Number == i )
Dom952 0:2459f0b51846 18 lcd.SetTextColor(LCD_COLOR_YELLOW);
Dom952 0:2459f0b51846 19 else lcd.SetTextColor(LCD_COLOR_BLUE);
Dom952 0:2459f0b51846 20 lcd.FillRect(1,(80*i+1),78,78);
Dom952 0:2459f0b51846 21 }
Dom952 0:2459f0b51846 22 lcd.SetBackColor(LCD_COLOR_RED);
Dom952 0:2459f0b51846 23 lcd.SetTextColor(LCD_COLOR_WHITE);
Dom952 0:2459f0b51846 24 lcd.DisplayStringAt(0,0, (uint8_t *) "0", LEFT_MODE);
Dom952 0:2459f0b51846 25 lcd.DisplayStringAt(0,80, (uint8_t *) "1", LEFT_MODE);
Dom952 0:2459f0b51846 26 lcd.DisplayStringAt(0,160, (uint8_t *) "2", LEFT_MODE);
Dom952 0:2459f0b51846 27 lcd.DisplayStringAt(0,240, (uint8_t *) "3", LEFT_MODE);
Dom952 0:2459f0b51846 28 }