movimiento puertas
Dependents: Prueba_Ascensor NewAscensor
door.cpp
- Committer:
- Hedizxom
- Date:
- 2018-06-06
- Revision:
- 2:253f5b9afee1
- Parent:
- 0:ca870e07774d
File content as of revision 2:253f5b9afee1:
#include "door.h" #include "mbed.h" /* *door.cpp */ Door::Door(PinName pwm_signal): servo(pwm_signal) { servo.period_ms(30) ; servo.pulsewidth_us(CLOSE_DOOR); } void Door::open() { servo.pulsewidth_us(OPEN_DOOR); } void Door::close(){ servo.pulsewidth_us(CLOSE_DOOR); }