yajuan yue / Mbed 2 deprecated ele350

Dependencies:   mbed

Fork of ele350 by JIAWEI ZHANG

Committer:
GGHHHH
Date:
Thu Oct 15 10:38:34 2015 +0000
Revision:
0:b43794060b94
Created library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GGHHHH 0:b43794060b94 1 #ifndef LED_H //
GGHHHH 0:b43794060b94 2 #define LED_H
GGHHHH 0:b43794060b94 3
GGHHHH 0:b43794060b94 4 #include "mbed.h"
GGHHHH 0:b43794060b94 5 #include <string>
GGHHHH 0:b43794060b94 6
GGHHHH 0:b43794060b94 7 class Led {
GGHHHH 0:b43794060b94 8 private:
GGHHHH 0:b43794060b94 9 PinName pin; //private member object from embed.h
GGHHHH 0:b43794060b94 10 DigitalOut *l; //private member object from embed.h
GGHHHH 0:b43794060b94 11
GGHHHH 0:b43794060b94 12 public:
GGHHHH 0:b43794060b94 13 Led(string s); //constructor or the class
GGHHHH 0:b43794060b94 14 void On(); //public member function
GGHHHH 0:b43794060b94 15 void Off(); //public member function
GGHHHH 0:b43794060b94 16 };
GGHHHH 0:b43794060b94 17
GGHHHH 0:b43794060b94 18 #endif /* LED_H */