ok blink

blink.h

Committer:
nielsen8
Date:
2010-11-03
Revision:
1:f91a78f50aa5
Parent:
0:994d48d4baab

File content as of revision 1:f91a78f50aa5:

#ifndef MBED_BLINK_H
#define MBED_BLINK_H

#include "mbed.h"

/** blink class
    not really doing anything here.


*/
class BLINK {
public:
    /** constuctor blink
        \param  pin the pin we wish to blink
    */
    BLINK(PinName pin);
    /** our  flasher code
        \param  n the number of time to flash
    */
    void flash(int n);
    /** turn off 
    */
    void off(void);
    /** turn on 
    */
    void on(void);
private:  
    DigitalOut _pin;
};

#endif