movimiento puertas
Dependents: Prueba_Ascensor NewAscensor
Diff: door.h
- Revision:
- 1:822591825ee6
- Child:
- 2:253f5b9afee1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/door.h Tue Feb 20 19:50:10 2018 +0000 @@ -0,0 +1,32 @@ +/* File: doors.h.h + * Author: Camilo Londoño + *Board: KL25Z + *Hardware: Servomotor, + * + * Desc: + * + * +*/ + +#ifndef door_H +#define door_H +#include "mbed.h" + +#define OPEN_DOOR 2300 +#define CLOSE_DOOR 600 + +class Door { + public: + Door(PinName pwm_signal); + void open(); + void close(); + + private: + PwmOut servo; + + +}; + +#endif + +