0

Dependents:   Micro_music_box_2 Mic_music_box

Revision:
0:6e09a4c848c9
Child:
1:4cd2e5fc0295
diff -r 000000000000 -r 6e09a4c848c9 led.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/led.h	Thu Feb 24 14:49:53 2022 +0000
@@ -0,0 +1,19 @@
+#ifndef LED_H
+#define LED_H
+#include "mbed.h"
+
+//Klasa koja daje funkcije za mjenjanje stanja 
+
+class LED
+{
+public:
+    LED(PinName pin);               
+    void state(int state);
+    void change();
+    
+private:
+    DigitalOut _pin;          //tako da može trepati na bilo kojem pinu
+};
+
+
+#endif
\ No newline at end of file