Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: led.cpp
- Revision:
- 0:324f895054e0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/led.cpp Tue Apr 06 08:24:02 2021 +0000
@@ -0,0 +1,17 @@
+#include "led.h"
+#include "mbed.h"
+
+LED::LED(PinName pin) : _pin(pin)
+{
+ _pin = 0;
+}
+//metoda određivanja stanja led diode
+void LED::stanje(int stanje)
+{
+ _pin = stanje;
+}
+ //metoda promjena stanja led diode
+void LED::promjena()
+{
+ _pin = !_pin;
+}
\ No newline at end of file