Stm for the project "Fahradlicht"
Diff: STM_Fahrrad_Licht.h
- Revision:
- 0:3d7042171419
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/STM_Fahrrad_Licht.h Fri Nov 23 15:26:49 2018 +0000 @@ -0,0 +1,35 @@ +#ifndef STM_FAHRRAD_LICHT_H +#define STM_FAHRRAD_LICHT_H + +#include "mbed.h" +#include "Led_Func_Lib.h" + +enum CurState{OFF, ALL, LL, LR, BLINKI, DEFBLINKI,POLICELIGHT}; + +class StateDefine : Led_Func{ + + public: + StateDefine(); + void st_off(); + void st_all(); + void st_ll(); + void st_lr(); + void st_blinki(); + void st_defblinki(); + void st_policelight(); + + void STATEChange(CurState aCS, float aCurTimerVal); + + private: + + Led_Func _STMLed; + + protected: + + Timer _stmTimer; + int _curLEDPos; + float _timerval; + + }; + +#endif \ No newline at end of file