Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
led.h@0:411348ec5d44, 2016-12-01 (annotated)
- Committer:
- akshay28
- Date:
- Thu Dec 01 06:15:47 2016 +0000
- Revision:
- 0:411348ec5d44
bvb
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akshay28 | 0:411348ec5d44 | 1 | #ifndef MBED_led_H |
akshay28 | 0:411348ec5d44 | 2 | #define MBED_led_H |
akshay28 | 0:411348ec5d44 | 3 | |
akshay28 | 0:411348ec5d44 | 4 | #include "mbed.h" |
akshay28 | 0:411348ec5d44 | 5 | |
akshay28 | 0:411348ec5d44 | 6 | class led { |
akshay28 | 0:411348ec5d44 | 7 | public: |
akshay28 | 0:411348ec5d44 | 8 | led(PinName pin); |
akshay28 | 0:411348ec5d44 | 9 | void led(int n); |
akshay28 | 0:411348ec5d44 | 10 | |
akshay28 | 0:411348ec5d44 | 11 | private: |
akshay28 | 0:411348ec5d44 | 12 | DigitalOut _pin; |
akshay28 | 0:411348ec5d44 | 13 | }; |
akshay28 | 0:411348ec5d44 | 14 | |
akshay28 | 0:411348ec5d44 | 15 | #endif |