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.
Dependencies: mbed
onoff.h
- Committer:
- Kurogami
- Date:
- 2019-03-01
- Revision:
- 0:ac12fb337ed8
File content as of revision 0:ac12fb337ed8:
#ifndef ONOFF_H
#define ONOFF_H
#include <DigitalOut.h>
#include <bp.h>
namespace smartled
{
class onoff : public mbed::DigitalOut
{
public:
onoff(PinName name,smartled::bp * bp, std::size_t * click_cpt);
void run(void);
void operator ()(void);
private:
smartled::bp * m_bp;
bool m_state;
std::size_t * m_click_cpt;
};
}
#endif // ONOFF_H