Function on LEDs
FonctionLED.h@1:e8cbefd668a4, 2012-05-28 (annotated)
- Committer:
- PA
- Date:
- Mon May 28 02:32:23 2012 +0000
- Revision:
- 1:e8cbefd668a4
- Parent:
- 0:3d463f0d51d9
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
PA | 0:3d463f0d51d9 | 1 | #ifndef MBED_FONCTIONLED_H |
PA | 0:3d463f0d51d9 | 2 | #define MBED_FONCTIONLED_H |
PA | 0:3d463f0d51d9 | 3 | |
PA | 0:3d463f0d51d9 | 4 | #include "mbed.h" |
PA | 0:3d463f0d51d9 | 5 | |
PA | 0:3d463f0d51d9 | 6 | class FonctionLED{ |
PA | 0:3d463f0d51d9 | 7 | |
PA | 0:3d463f0d51d9 | 8 | public: |
PA | 0:3d463f0d51d9 | 9 | FonctionLED (PinName pin); |
PA | 0:3d463f0d51d9 | 10 | void OnOff (); |
PA | 0:3d463f0d51d9 | 11 | void Brightness (int n); |
PA | 0:3d463f0d51d9 | 12 | |
PA | 0:3d463f0d51d9 | 13 | private: |
PA | 0:3d463f0d51d9 | 14 | DigitalOut _pin; |
PA | 0:3d463f0d51d9 | 15 | }; |
PA | 0:3d463f0d51d9 | 16 | |
PA | 0:3d463f0d51d9 | 17 | #endif |