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-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