APP2 - SNE CODE / Mbed 2 deprecated Exercice_3V1

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