yajuan yue / Mbed 2 deprecated ele350

Dependencies:   mbed

Fork of ele350 by JIAWEI ZHANG

Led.h

Committer:
GGHHHH
Date:
2015-10-15
Revision:
0:b43794060b94

File content as of revision 0:b43794060b94:

#ifndef LED_H      //
#define LED_H

#include "mbed.h"
#include <string>

class Led {
    private:
    PinName pin;          //private member object from embed.h
    DigitalOut *l;        //private member object from embed.h
    
    public:
        Led(string s);       //constructor or the class 
        void On();           //public member function
        void Off();          //public member function
};

#endif /* LED_H */