my library for elec350

Dependencies:   mbed

Led.h

Committer:
spanesar
Date:
2016-10-06
Revision:
1:8cd3ad6ab5f3

File content as of revision 1:8cd3ad6ab5f3:

#ifndef _LED_H_
#define _LED_H_
#include "mbed.h"

class Led
{
    public:
    Led(PinName pinName);
    void switchOn();
    void switchOff();
    void flash(float time);
    private:
    DigitalOut pin;
    };
    #endif