Alberto Terrazas / Mbed 2 deprecated Lupe

Dependencies:   mbed

GRIDDLE/GRIDDLE.h

Committer:
papaco
Date:
2019-02-13
Revision:
3:dd5c9690ed0d
Parent:
1:4fb1de70cd4d
Child:
4:379e05b2fc0d

File content as of revision 3:dd5c9690ed0d:

#include "mbed.h"
#include "definitions.h"

class GRIDDLE{
    public:
        GRIDDLE(PinName Pwm,PinName Up,PinName Down,PinName Home);
        void Init(void);
        void Home(void);
        void press(void);
        bool isFree(void);
        bool check(void);
        void setTimer(int t);
    private:
        PwmOut GriddlePWM;
        DigitalOut GriddleMotorUp;
        DigitalOut GriddleMotorDown;
        DigitalIn GriddleHome;
        int TimerDown;
        int timer;
};//GRIDDLE