CoilGun
Diff: coilgun.h
- Revision:
- 0:2d5820be7f51
- Child:
- 1:aa39e3a9d06f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coilgun.h Mon Sep 09 17:07:52 2013 +0000 @@ -0,0 +1,19 @@ +#ifndef COILGUN_H +#define COILGUN_H + +#include "mbed.h" + +class CoilGun { +public: + CoilGun(PinName chargePin, PinName kickPin, PinName donePin); + + void kick(int length); + void setCharge(bool chargeState); + +private: + DigitalOut charge; + DigitalOut kick; + InterrupIn done; +}; + +#endif \ No newline at end of file