Aa

Dependents:   EMBEED_III_zad_4 mbed3 mbed_3 MBED3_zad4

Revision:
1:036ba0fc54a5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Ledboard.cpp	Sat Jun 13 13:28:57 2020 +0000
@@ -0,0 +1,25 @@
+#include "Ledboard.h"
+
+extern LCD_DISCO_F429ZI lcd;
+
+Ledboard::Ledboard(unsigned char ucColumn)
+{
+    lcd.Clear(LCD_COLOR_BLACK);
+    lcd.SetBackColor(LCD_COLOR_RED);
+    lcd.SetFont(&Font24);
+    for(unsigned char ucRow = 0; ucRow < 4; ucRow++)
+        Leds[ucRow] = new Led(ucColumn, ucRow);   
+    Off();
+}
+
+void Ledboard::Off()
+{
+    for(unsigned char ucRow = 0; ucRow < 4; ucRow++)
+        Leds[ucRow]->Off();
+}
+
+void Ledboard::On(unsigned char ucRowNumber)
+{
+    Off();
+    Leds[ucRowNumber]->On();
+}
\ No newline at end of file