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.
PowerControl.cpp
- Committer:
- kwasymodo
- Date:
- 2017-05-10
- Revision:
- 0:f7568c04c1c3
- Child:
- 1:1bae9ab7241e
File content as of revision 0:f7568c04c1c3:
#include "PowerControl.h"
PowerControl::PowerControl(PinName greenButton, PinName redButton):
_greenButton(greenButton), _redButton(redButton)
{
// _greenButton.mode(PullUp);
_greenButton.fall(this, &PowerControl::goSleep);
// _redButton.mode(PullUp);
//_red.fall(this, &MotorRPM::addSample);
}
void PowerControl::goSleep(void)
{
printf("going to sleep\r\n");
//sleep();
}