Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: io/DeviceFeedback.h
- Revision:
- 65:a62dbef2f924
- Child:
- 67:c360a2b2c948
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/io/DeviceFeedback.h Thu Oct 30 13:38:20 2014 +0000 @@ -0,0 +1,26 @@ +#ifndef DEVICEFEEDBACK_H +#define DEVICEFEEDBACK_H + +#include <stddef.h> +#include "mbed.h" +#include "rtos.h" + +class DeviceFeedback +{ +public: + DeviceFeedback(PwmOut speaker); + + void closeRelay(); + void openRelay(); + +protected: + void thread(); + static void thread_func(void const*); + +private: + PwmOut _speaker; + Thread _thread; + Mail<uint8_t, 16> _mail; +}; + +#endif \ No newline at end of file