Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
GRIDDLE/GRIDDLE.h
- Committer:
- papaco
- Date:
- 2019-02-20
- Revision:
- 4:379e05b2fc0d
- Parent:
- 3:dd5c9690ed0d
File content as of revision 4:379e05b2fc0d:
#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); int getTimer(void); private: PwmOut GriddlePWM; DigitalOut GriddleMotorUp; DigitalOut GriddleMotorDown; DigitalIn GriddleHome; int TimerDown; int timer; };//GRIDDLE