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: indicator.cpp
- Revision:
- 2:ff5abf6d887c
- Child:
- 3:11ab070a3edb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/indicator.cpp Tue Nov 22 10:59:11 2016 +0000
@@ -0,0 +1,38 @@
+#include "mbed.h"
+#include "indicator.h"
+
+Indicator::Indicator(PinName pin) : _pin(pin) {
+ _pin = 0;
+}
+ void indicator_thread()
+ {
+ while(1)
+ {
+ _pin= ledstatus;
+ }
+ }
+
+ void Indicator::SetSituation()
+ {
+
+ }
+ void Status(int situation,int ledstatus)
+ {
+ if(situation == 0)
+ {
+ ledstatus = 0;
+ }
+ else if(situation==1)
+ {
+ ledstatus = 1;
+ }
+
+ }
+ void Indicator::SlowFlash(int situation,int ledstatus)
+ {
+
+ }
+ void Indicator::FastFlash(int situation,int ledstatus)
+ {
+
+ }
\ No newline at end of file