mbed_example / Mbed 2 deprecated AnalogOut_HelloWorld_mbed

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mbedAustin
Date:
Sun Sep 21 19:13:01 2014 +0000
Parent:
1:082c8dbf298a
Child:
3:8b80a1c145ea
Commit message:
added comment on what program does

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Sep 21 19:10:53 2014 +0000
+++ b/main.cpp	Sun Sep 21 19:13:01 2014 +0000
@@ -1,7 +1,8 @@
 #include "mbed.h"
  
 AnalogOut signal(p18);
- 
+
+// ramp up the output in 10% incriments, drop to zero, repeat
 int main() {
     while(1) {
         for(float i=0.0; i<1.0; i+=0.1) {