Simple library, creates LED object using LED class, and gives it flip function that changes its value from 0 to 1 and vice versa.

Dependents:   Hodak_MorseCoder

Revision:
0:f7dc5fd660f6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/led.cpp	Sun Nov 15 18:55:08 2020 +0000
@@ -0,0 +1,11 @@
+#include "led.h"
+#include "mbed.h"
+LED::LED(PinName pin) : _pin(pin)
+{
+    _pin = 0;
+}
+//Metoda mijenja stanje na LED
+void LED::flip()
+{
+    _pin = !_pin;
+}