ledice

Dependencies:   mbed

https://os.mbed.com/media/uploads/kivankic/kristina_ivankic.png

Revision:
0:e23b62a49888
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ledice.h	Sun Jul 11 13:44:14 2021 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#ifndef LEDICE_H
+#define LEDICE_H
+
+class Ledice
+{
+public:
+    Ledice(PinName pinZelenaLed, PinName pinZutaLed, PinName pinCrvenaLed);
+    void postaviLedice(int zelena, int zuta, int crvena);
+    void upaliSveLedice(int vrijemeRada);
+    
+private:
+    DigitalOut _zelenaLed;
+    DigitalOut _zutaLed;
+    DigitalOut _crvenaLed;
+};
+#endif
\ No newline at end of file