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.
Diff: PowerControl.h
- Revision:
- 0:f7568c04c1c3
- Child:
- 2:1e3291e8294d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PowerControl.h Wed May 10 17:13:50 2017 +0000 @@ -0,0 +1,27 @@ +#ifndef POWER_H +#define POWER_H + +#include "mbed.h" + +/** Power class + * Used to control the buck converters + */ +class PowerControl +{ + public: + /** Create PowerControl instance + @param greenButton + @param redButton + */ + PowerControl(PinName greenButton, PinName redButton); + + private: + /** goSleep + sleep + */ + void goSleep(void); + + InterruptIn _greenButton; + InterruptIn _redButton; +}; +#endif //POWER_H \ No newline at end of file