Niels Leijen / PowerControl

PowerControl.h

Committer:
kwasymodo
Date:
2017-05-10
Revision:
0:f7568c04c1c3
Child:
2:1e3291e8294d

File content as of revision 0:f7568c04c1c3:

#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