a led demo code

Dependents:   Nucleo_F411RE_OS_Robot_Tank

LED.h

Committer:
adaphoto
Date:
2018-06-18
Revision:
0:651a5dcc2df6
Child:
1:6cb3a93ae325

File content as of revision 0:651a5dcc2df6:

#ifndef LED_H_ADA
#define LED_H_ADA

class LED 
{
    public:
    LED(PinName ledpin);
    
    void LED_On();
    
    void LED_Off();
    
    void LED_Troggle();
    
    private:
    DigitalOut led;
    /** Initialization. */
    void init();
};

#endif