mbed3

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Revision:
2:aebba5ba280a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Ledboard.cpp	Mon May 25 11:17:21 2020 +0000
@@ -0,0 +1,24 @@
+#include "Ledboard.h"
+#include "LCD_DISCO_F429ZI.h"
+
+extern LCD_DISCO_F429ZI lcd;
+
+Ledboard::Ledboard(unsigned char ucColumn){
+    lcd.Clear(LCD_COLOR_BLACK);
+    BSP_LCD_SetFont(&Font24);
+    lcd.SetBackColor(LCD_COLOR_RED);
+    
+    for(unsigned char ucRow = 0; ucRow < 4; ucRow++){
+        Leds[ucRow] = new Led(ucColumn, ucRow);   
+    }
+}
+
+void Ledboard::On(unsigned char ucRow){
+    Leds[ucRow]->On();
+}
+
+void Ledboard::Off(){
+    for(unsigned char ucRow = 0; ucRow < 4; ucRow++){
+        Leds[ucRow]->Off();   
+    }     
+}
\ No newline at end of file