kh
Dependencies: mbed PinDetect Servo
parameters.h
- Committer:
- Sayak97
- Date:
- 2018-11-10
- Revision:
- 0:28e05e1a3d1e
- Child:
- 1:2c365f6da61d
File content as of revision 0:28e05e1a3d1e:
#include "mbed.h" /* * Authors: Group 4 Adam Elghor, Brian Kaplan, Sayak Chatterjee, Moraa Onwonga * Purpose: Controls the parameters of the safe * Language: C */ enum state{OPEN, LOCK, SETUP};/*Name of the states in the Safe Cups State Machine*/ #define maxFailedAtttemps 6; /*number of max failed attemps entered before alarm is thrown*/ DigitalIn button(p8); PwmOut rcServo1(p23); // pwm, fwd, rev PwmOut rcServo2(p24); // pwm, fwd, rev Serial blue(p28,p27); AnalogIn pot1(p20); AnalogIn pot2(p21); AnalogIn pot3(p22); AnalogIn pot4(p22);