a Led library
Revision 3:b956eea5ac9a, committed 2022-09-11
- Comitter:
- kahre
- Date:
- Sun Sep 11 13:59:56 2022 +0000
- Parent:
- 2:520d7d5e2dcf
- Commit message:
- updated doc
Changed in this revision
| led.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/led.h Sun Sep 11 13:56:38 2022 +0000
+++ b/led.h Sun Sep 11 13:59:56 2022 +0000
@@ -7,22 +7,31 @@
public:
led(PinName name);
- /**turn on led
+ /**
+ *turn on led
*/
void on();
- //turn of led
+ /**
+ *turn of led
+ */
void off();
- //toggles state of led
+ /**
+ * toggles state of led
+ */
void toggle();
- //make led blink once, given a duraiton in seconds
+ /**
+ *make led blink once, given a duraiton in seconds
+ */
void blink(int time);
private:
- //the led on the board
+ /**
+ *the led on the board
+ */
DigitalOut myled;
};