Dependencies:   mbed

Fork of Lab1_Part9 by Barry Johnson-Smith

Files at this revision

API Documentation at this revision

Comitter:
bjs9
Date:
Wed Jan 31 18:24:47 2018 +0000
Parent:
3:e09fd735ed93
Commit message:
Changes to code;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e09fd735ed93 -r e4aed7bf3e21 main.cpp
--- a/main.cpp	Wed Jan 31 18:21:06 2018 +0000
+++ b/main.cpp	Wed Jan 31 18:24:47 2018 +0000
@@ -13,7 +13,7 @@
     const double pi = 3.141592653589793238462;
     while (1) {
         for(int i= 0; i < 20; i++ ){
-        aout = sin(2 *pi  * i/20);
+        aout = 1.6 + 3.3f *sin(pi  * i/10);
         //printf("aout = %1.2f volts\n",aout.read());
         }
     }