a led demo code

Dependents:   Nucleo_F411RE_OS_Robot_Tank

Files at this revision

API Documentation at this revision

Comitter:
adaphoto
Date:
Mon Jun 18 08:57:16 2018 +0000
Parent:
0:651a5dcc2df6
Child:
2:94318e6e89ff
Commit message:
update test; use example code update

Changed in this revision

LED.cpp Show annotated file Show diff for this revision Revisions of this file
LED.h Show annotated file Show diff for this revision Revisions of this file
--- a/LED.cpp	Mon Jun 18 08:46:12 2018 +0000
+++ b/LED.cpp	Mon Jun 18 08:57:16 2018 +0000
@@ -19,4 +19,6 @@
     
 void LED::LED_Troggle(){
     led = !led;
-    }
\ No newline at end of file
+    }
+    
+    
\ No newline at end of file
--- a/LED.h	Mon Jun 18 08:46:12 2018 +0000
+++ b/LED.h	Mon Jun 18 08:57:16 2018 +0000
@@ -1,6 +1,24 @@
 #ifndef LED_H_ADA
 #define LED_H_ADA
 
+/*
+Example of use:
+* @code
+*LED user_led(LED1);
+*int main() 
+*{
+*    
+*    while (true) 
+*    {
+*        user_led.LED_On();
+*        wait(0.05);
+*        user_led.LED_Off();
+*        wait(0.05);
+*    }
+*}
+* @code
+*/
+
 class LED 
 {
     public: